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

Vue打包编译报错 core-js #31

Open
Bobjoy opened this issue Mar 28, 2020 · 0 comments
Open

Vue打包编译报错 core-js #31

Bobjoy opened this issue Mar 28, 2020 · 0 comments
Labels

Comments

@Bobjoy
Copy link
Owner

Bobjoy commented Mar 28, 2020

问题描述

Using polyfills: No polyfills were added, since the `useBuiltIns` option was not set.
98% after emitting CopyPlugin

 ERROR  Failed to compile with 1 errors                                                                                                     3:29:17 PM

This dependency was not found:

* core-js/modules/es.object.to-string in ./src/router/index.js

To install it, you can run: npm install --save core-js/modules/es.object.to-string

解决办法

babel.config.js文件

presets: [ [ "@vue/app", { useBuiltIns: "entry" } ] ]
@Bobjoy Bobjoy added the 💥Vue Vue label Mar 28, 2020
@Bobjoy Bobjoy changed the title Vue打包编译报错,These dependencies were not found:core-js/modules/es Vue打包编译报错 core-js Mar 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant