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

启动项目报 找不到core-js的错 #7

Closed
youzhidong opened this issue Sep 29, 2019 · 5 comments
Closed

启动项目报 找不到core-js的错 #7

youzhidong opened this issue Sep 29, 2019 · 5 comments

Comments

@youzhidong
Copy link

我 install core-js但是还是报not found: Error: Can't resolve 'core-js/modules/es6.array.filter'

@youzhidong youzhidong changed the title 重新拉项目报 找不到core-js的错 启动项目报 找不到core-js的错 Sep 29, 2019
@gorkys
Copy link
Owner

gorkys commented Sep 29, 2019

你可能需要把package-lock.jsonnode_modules文件夹删除,然后再npm install

@youzhidong
Copy link
Author

我重新npm install了,用npm run serve启动还是报core-js/modules/es6.array.filter

@gorkys
Copy link
Owner

gorkys commented Sep 29, 2019

npm install core-js@2试试,或者看看gatsbyjs/gatsby#7862

@gorkys gorkys closed this as completed Sep 30, 2019
@youzhidong
Copy link
Author

启动cnpm install [email protected] -D 完美解决,非常感谢

@gorkys
Copy link
Owner

gorkys commented Sep 30, 2019

按理说,你删除package-lock.json再安装就应该可以了的,因为core-js是在最新一个版本中有意删除。安装只是因为同步原作者的依赖版本时的一个解决方案。

@gorkys gorkys pinned this issue Nov 26, 2019
@gorkys gorkys unpinned this issue May 15, 2020
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