You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ ng build
Date: 2019-01-27T14:25:18.561Z
Hash: 45f3fd6ac090c98d3d19
Time: 6675ms
chunk {main} main.js, main.js.map (main) 1.05 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 99.4 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.08 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 16.7 kB [initial] [rendered]
ERROR in ./src/main.ts
Module build failed (from ./node_modules/@ngtools/webpack/src/index.js):
Error: Angular Compiler was detected but it was an instance of the wrong class.
This likely means you have several @ngtools/webpack packages installed. You can check this with `npm ls @ngtools/webpack`, and then remove the extra copies.
at Object.ngcLoader (C:\coder2\lerna-angular\apps\ng-app\node_modules\@ngtools\webpack\src\loader.js:33:15)
ERROR in ./src/polyfills.ts
Module build failed (from ./node_modules/@ngtools/webpack/src/index.js):
Error: Angular Compiler was detected but it was an instance of the wrong class.
This likely means you have several @ngtools/webpack packages installed. You can check this with `npm ls @ngtools/webpack`, and then remove the extra copies.
at Object.ngcLoader (C:\coder2\lerna-angular\apps\ng-app\node_modules\@ngtools\webpack\src\loader.js:33:15)
I need to use lerna (not nx or bazel) with angular.
This is not lerna problem, it's happend during the build time. Lerna just link the package to node_module.
You can clone my repo and see yourself the problem.
$ npm i lerna -g
$ npm run bootstrap
$ cd apps/ng-app
$ ng build
When I build my application, I got this error.
I need to use
lerna
(notnx
orbazel
) with angular.This is not lerna problem, it's happend during the build time. Lerna just link the package to
node_module
.You can clone my repo and see yourself the problem.
The text was updated successfully, but these errors were encountered: