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

v15启动报错 #278

Closed
bokire opened this issue Mar 29, 2023 · 3 comments
Closed

v15启动报错 #278

bokire opened this issue Mar 29, 2023 · 3 comments

Comments

@bokire
Copy link

bokire commented Mar 29, 2023

Describe the bug
下载仓库代码,安装启动报错

To Reproduce
Steps to reproduce the behavior:

  1. git clone https://github.com/worktile/ngx-planet.git
  2. npm i
  3. npm run start
  4. See error

Expected behavior
TypeError: The 'compilation' argument must be an instance of Compilation
at Function.getCompilationHooks (/Users/bokire/git/ngx-planet/node_modules/webpack/lib/NormalModule.js:227:10)
at WebpackAssetsManifest.handleCompilation (/Users/bokire/git/ngx-planet/node_modules/webpack-assets-manifest/src/WebpackAssetsManifest.js:784:18)
at Hook.eval [as call] (eval at create (/Users/bokire/git/ngx-planet/node_modules/@angular-devkit/build-angular/node_modules/tapable/lib/HookCodeFactory.js:19:10), :230:1)
at Hook.CALL_DELEGATE [as _call] (/Users/bokire/git/ngx-planet/node_modules/@angular-devkit/build-angular/node_modules/tapable/lib/Hook.js:14:14)
at Compiler.newCompilation (/Users/bokire/git/ngx-planet/node_modules/@angular-devkit/build-angular/node_modules/webpack/lib/Compiler.js:1122:26)
at /Users/bokire/git/ngx-planet/node_modules/@angular-devkit/build-angular/node_modules/webpack/lib/Compiler.js:1166:29
at eval (eval at create (/Users/bokire/git/ngx-planet/node_modules/@angular-devkit/build-angular/node_modules/tapable/lib/HookCodeFactory.js:33:10), :31:1)
/Users/bokire/git/ngx-planet/node_modules/webpack/lib/NormalModule.js:227
throw new TypeError(

@why520crazy
Copy link
Member

这是因为 Angular CLI 小版本改了 Webpack 的版本导致的,示例未同步修改导致的,我会在今天修复一下。

@why520crazy
Copy link
Member

Fixed! pull latest code and exec npm run install try again

@bokire
Copy link
Author

bokire commented Apr 6, 2023

嗯,已经可以正常启动了

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