prosemirror-mentions icon indicating copy to clipboard operation
prosemirror-mentions copied to clipboard

Running build causes error

Open doublejosh opened this issue 3 years ago • 3 comments

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.

doublejosh avatar Jul 29 '20 00:07 doublejosh

Looks like a problem with the version of rollup you are using. Can you specify the version of rollup being used?

joelewis avatar Aug 03 '20 15:08 joelewis

As a workaround, you can change the entry in rollup.config.js from "esm" to "es". This should fix the problem.

joelewis avatar Aug 03 '20 16:08 joelewis

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.

doublejosh avatar Aug 10 '20 20:08 doublejosh