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

'import' and 'export' may appear only with 'sourceType: module' #18

Closed
mikeymckay opened this issue Aug 26, 2022 · 1 comment
Closed

Comments

@mikeymckay
Copy link

....SyntaxError: 'import' and 'export' may appear only with 'sourceType: module' (8:0) while parsing

This seems to be result from trying to keep the javascript pure (based on reading through other issues) versus adding something simple to make it work within browsers (via browserify for example). Virtually every other npm package works perfectly, so this is disappointing.

@sindresorhus
Copy link
Owner

https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c

@sindresorhus sindresorhus closed this as not planned Won't fix, can't repro, duplicate, stale Aug 26, 2022
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