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

项目运行yarn build报错了 #1

Open
yangsanjin5 opened this issue May 10, 2022 · 1 comment
Open

项目运行yarn build报错了 #1

yangsanjin5 opened this issue May 10, 2022 · 1 comment

Comments

@yangsanjin5
Copy link

拿到项目后我 yarn install
然后 yarn build 就直接报错了:Error: Cannot find module 'has'
报找不到这个模块 然后我再 :yarn add has 继续yarn build 还是报上面那个错误 (Error: Cannot find module 'has');
求大神帮忙看看。

@liyongning
Copy link
Owner

liyongning commented May 11, 2022

拿到项目后我 yarn install 然后 yarn build 就直接报错了:Error: Cannot find module 'has' 报找不到这个模块 然后我再 :yarn add has 继续yarn build 还是报上面那个错误 (Error: Cannot find module 'has'); 求大神帮忙看看。

你用 npm 试试?我刚跑了一遍 npm run build:esm 一切正常。

我的运行环境 node 版本:16.14.2,npm 版本 8.5.0

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