Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running build causes error #13

Open
doublejosh opened this issue Jul 29, 2020 · 3 comments
Open

Running build causes error #13

doublejosh opened this issue Jul 29, 2020 · 3 comments

Comments

@doublejosh
Copy link

doublejosh commented Jul 29, 2020

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.

@joelewis
Copy link
Owner

joelewis commented Aug 3, 2020

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

@joelewis
Copy link
Owner

joelewis commented Aug 3, 2020

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

@doublejosh
Copy link
Author

doublejosh commented Aug 10, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants