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

Bundles fail to load without core-js and @babel/runtime installed #39

Closed
jansiegel opened this issue Nov 19, 2019 · 2 comments
Closed

Comments

@jansiegel
Copy link
Member

When trying to import a bundle (e.g. /dist/unoptimized-full/bundle.js) I get a bunch of errors:

Module not found: Error: Can't resolve '@babel/runtime/helpers/interopRequireDefault'
Module not found: Error: Can't resolve '@babel/runtime/helpers/typeof'
Module not found: Error: Can't resolve 'core-js/modules/es.json.to-string-tag'
Module not found: Error: Can't resolve 'core-js/modules/es.math.to-string-tag'
Module not found: Error: Can't resolve 'core-js/modules/es.object.to-string'
Module not found: Error: Can't resolve 'core-js/modules/es.symbol'
Module not found: Error: Can't resolve 'core-js/modules/es.symbol.description'
Module not found: Error: Can't resolve 'core-js/modules/es.symbol.to-string-tag'

After manually installing core-js and @babel/runtime they go away, so I'm guessing they should be added to package.json as dependencies or at least peerDependencies?

@voodoo11
Copy link
Collaborator

babel-runtime and core-js are not a production dependencies.

I cannot reproduce it. Can you elaborate more on what are you trying to do?

@jansiegel
Copy link
Member Author

Nevermind, it might have been caused by me using npm link. When I'm installing it straight from github it seems to work alright without those.

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