Describe the bug
When using the next generation esm bundler vite, I'm getting this error:
> node_modules/y-prosemirror/src/lib.js:1:26: error: No matching export for import "ProsemirrorMapping"
1 │ import { updateYFragment, ProsemirrorMapping } from './plugins/sync-plugin.js' // eslint-disable-line
╵ ~~~~~~~~~~~~~~~~~~
I think this is because ProsemirrorMapping is a type generated in the build process. Since vite (esbuild) is very strict and uses the source files, it can't find this export. Here is a comment from evan you about that.
Do you have any idea how to fix that on your side?
Describe the bug When using the next generation esm bundler vite, I'm getting this error:
I think this is because
ProsemirrorMapping
is a type generated in the build process. Sincevite
(esbuild) is very strict and uses the source files, it can't find this export. Here is a comment from evan you about that.Do you have any idea how to fix that on your side?
To Reproduce
y-prosemirror
in a vite projectExpected behavior It should not throw an error