prosemirror-mentions
prosemirror-mentions copied to clipboard
Running build causes error
When trying to build via npm run build
, the /dist
folder is created, but you get the following error...
[!] Error: Invalid format: esm - valid options are amd, cjs, es, iife, umd
I tried to solve this by installing esm via npm i esm
, but it still results in the same error.
Looks like a problem with the version of rollup you are using. Can you specify the version of rollup being used?
As a workaround, you can change the entry in rollup.config.js from "esm" to "es". This should fix the problem.
It should have been using the local copy of rollup declared in prosemirror-mentions/package.json
which is 0.50.1.
I was able to use the workaround, but it seems like the main build will produce an error.