chenjiahan / chenjiahan/babel-plugin-dynamic-import-polyfill
core-js/modules/es.array.iterator dependency was not found
- Dominant language
- JavaScript
- Stars
- 11
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
I try to use your plugin within Nuxt, but once I add it to my babel plugins I get an error:
```
ERROR Failed to compile with 1 errors
This dependency was not found:
* core-js/modules/es.array.iterator in ./.nuxt/router.js
To install it, you can run: npm install --save core-js/modules/es.array.iterato
r
```
I suppose it relates to the version of core-js. I'm using v.2.6.11 but your plugin seems to rely on v.3
Is it the case? If so - how can I use it with v.2 ?
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the Nuxt build using core-js 2.6.11 and the plugin, then inspect the generated ./.nuxt/router.js where the missing dependency appears. Compare the plugin's dependency expectations with the installed core-js version; done means the reported build error is resolved or the supported version requirements are clearly established.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nuxtjs
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100