Doesn't work when imported into a web pack bundle.
See original GitHub issueWebpack is unable to deal with the implicit chunks in the dist/browser
folder.
Possible solution - looking into using pkg.module
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Webpack is not bundling a imported and used function
Therefore it is not visible in your entry.js , when you try to import it. ... Then your code will be able to...
Read more >Module Methods - webpack
When using webpack to bundle your application, you can pick from a ... It is not possible to use a fully dynamic import...
Read more >A Guide to Managing Webpack Dependencies - Toptal
A Guide to Managing Webpack Dependencies ... The Webpack module bundler processes JavaScript code and all static assets, such as stylesheets, images, and...
Read more >[NOT RESOLVED] Built 'module' bundle errors with "require is ...
[webpack-cli] Error: For the selected environment is no default ESM chunk format available: ESM exports can be chosen when 'import()' is available. JSONP...
Read more >WTF is a Webpack - What Problem Does It Solve?
All those files should then be brought together and translated into a single file, suitable for use in a web browser. Surprisingly, webpack...
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
I am using
create-react-app
and I get the same issue.I managed to make it work by importing the other chunks also, like this:
Hope this helps other people until a fix is implemented.
Closing for now. Please re-open if the issue still persists.