BuildError: squirrelly@7.8.0 fails to build
See original GitHub issuesquirrelly
Entire (stringified) error that I see in my browser console
main.bundle.js from Terser Export statement may only appear at top level [main.bundle.js:11,4290]
"{"error":{"code":"BuildError","message":"Failed to build this package.","details":{"name":"BuildError","originalError":["main.bundle.js from Terser\nExport statement may only appear at top level [main.bundle.js:11,4290]"]}}}"
Notes
I just refactored my library, squirrelly, to support ES Modules. All previous versions compile correctly. My library’s ES Module dist can be found here: https://unpkg.com/squirrelly@7.8.0/dist/es/squirrelly.dev.js
Testing version 7.8.0, however, seems to indicate that it works fine…
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Flask error: werkzeug.routing.BuildError - Stack Overflow
I modify the login of flaskr sample app, the first line get error. But www.html is in the ...
Read more >Build error for Python 3.7 on two different projects
I updated the readme of two of my python projects on Github and the triggered buildings from Travis CI were both failed under...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You could still minify your ES builds and distribute them if they were a part of
dist
in your package, but not exposed through themodule
declaration in package.json?@pastelsky I’m debating creating three builds: a CJS build (
main
), an ES build (module
), and a UMD build (browser
). I’d only minify the UMD build. I think this should solve the problem.Can you think of any potential problems with this?