question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

With `useBuiltIns` option, required direct setting of `corejs` option

See original GitHub issue

With useBuiltIns option, required direct setting of corejs option 98% after emitting CopyPlugin ERROR Failed to compile with 36 errors 10:20:25 These dependencies were not found:

  • core-js/modules/es6.array.iterator in ./src/main.js, ./src/webapp/main.js
  • core-js/modules/es6.function.name in ./src/main.js
  • core-js/modules/es6.number.constructor in ./src/assets/js/utils.js
  • core-js/modules/es6.object.assign in ./src/main.js, ./src/webapp/main.js
  • core-js/modules/es6.object.to-string in ./src/main.js, ./src/assets/js/utils.js and 2 others
  • core-js/modules/es6.promise in ./src/main.js, ./src/webapp/main.js
  • core-js/modules/es6.regexp.match in ./src/assets/js/utils.js
  • core-js/modules/es6.regexp.replace in ./src/main.js, ./src/assets/js/gt.js and 3 others
  • core-js/modules/es6.regexp.split in ./src/assets/js/utils.js
  • core-js/modules/es6.regexp.to-string in ./src/main.js, ./src/assets/js/utils.js and 1 other
  • core-js/modules/es6.string.includes in ./src/store.js, ./src/main.js and 2 others
  • core-js/modules/es6.string.iterator in ./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref–12-0!./node_modules/_babel-loader@8.0.5@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref–0-0!./node_modules/_vue-loader@15.7.0@vue-loader/lib??vue-loader-options!./src/views/assets/Index.vue?vue&type=script&lang=js&
  • core-js/modules/es6.typed.uint8-array in ./src/assets/js/utils.js
  • core-js/modules/es7.array.includes in ./src/store.js, ./src/main.js and 3 others
  • core-js/modules/es7.promise.finally in ./src/main.js, ./src/webapp/main.js
  • core-js/modules/web.dom.iterable in ./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref–12-0!./node_modules/_babel-loader@8.0.5@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref–0-0!./node_modules/_vue-loader@15.7.0@vue-loader/lib??vue-loader-options!./src/views/assets/Index.vue?vue&type=script&lang=js&

To install them, you can run: npm install --save core-js/modules/es6.array.iterator core-js/modules/es6.function.name core-js/modules/es6.number.constructor core-js/modules/es6.object.assign core-js/modules/es6.object.to-string core-js/modules/es6.promise core-js/modules/es6.regexp.match core-js/modules/es6.regexp.replace core-js/modules/es6.regexp.split core-js/modules/es6.regexp.to-string core-js/modules/es6.string.includes core-js/modules/es6.string.iterator core-js/modules/es6.typed.uint8-array core-js/modules/es7.array.includes core-js/modules/es7.promise.finally core-js/modules/web.dom.iterable

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

7reactions
aa-ziyicommented, Mar 21, 2019

https://github.com/vuejs/vue-cli/issues/3678

change babel.config.js presets: [[‘@vue/app’, { useBuiltIns: ‘entry’ }]]

2reactions
SGrondincommented, Mar 20, 2019

It seems to be due to https://github.com/babel/babel/pull/9616

I fixed it by adding "@babel/parser": "<7.4.0", to my dependencies. That forces your app to resolve to @babel/parser 7.3. And with that the problem is fixed. I’ll revisit this in a month or two once the Babel people fix the problem.

npm ls @babel/parser
├─┬ @babel/core@7.3.4
│ ├── @babel/parser@7.3.4  deduped
│ ├─┬ @babel/template@7.4.0
│ │ └── @babel/parser@7.4.0
│ └─┬ @babel/traverse@7.4.0
│   └── @babel/parser@7.4.0
├── @babel/parser@7.3.4
└─┬ parcel-bundler@1.11.0
  └── @babel/parser@7.3.4  deduped

Other links discussing this problem: https://stackoverflow.com/questions/55251983/what-does-this-error-mean-with-usebuiltins-option-required-direct-setting-of https://github.com/parcel-bundler/parcel/issues/2820 https://github.com/vuejs/vue-cli/issues/3678 https://github.com/apollographql/react-apollo/issues/2886

Read more comments on GitHub >

github_iconTop Results From Across the Web

What does this error mean? With `useBuiltIns` option, required ...
Getting the same issue. Resolved it by installing core-js as a top level dependency and then adding it as an option to .babelrc...
Read more >
Unexpected "With useBuiltins option, required direct setting of ...
useBuiltIns now requires direct setting of corejs version option, without it will be used 2 by default and shown deprecation warning."
Read more >
What does this error mean? With `useBuiltIns` option, required ...
Coding example for the question What does this error mean? With `useBuiltIns` option, required direct setting of `corejs` option-babel.js.
Read more >
babel/preset-env
When either the usage or entry options are used, @babel/preset-env will add direct references to core-js modules as bare imports (or requires). This...
Read more >
What does this error mean? With `useBuiltIns ... - iTecNote
With `useBuiltIns ` option, required direct setting of `corejs` option. babeljsnpm. I just started getting this error in my static assets build with ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found