cipchk / ngx-highlight-js

Angular for syntax highlighting with highlight.js
https://cipchk.github.io/ngx-highlight-js/
MIT License
28 stars 4 forks source link

Error in metadata #2

Closed aluneau closed 6 years ago

aluneau commented 7 years ago

Hi I have some problems to run ngx-highlight-js since a npm update

here is the error log:

[0]     at syntaxError (/Users/adrien/projets/portfolio/node_modules/@angular/compiler/bundles/compiler.umd.js:1729:34)
[0]     at simplifyInContext (/Users/adrien/projets/portfolio/node_modules/@angular/compiler/bundles/compiler.umd.js:24979:23)
[0]     at StaticReflector.simplify (/Users/adrien/projets/portfolio/node_modules/@angular/compiler/bundles/compiler.umd.js:24991:13)
[0]     at StaticReflector.annotations (/Users/adrien/projets/portfolio/node_modules/@angular/compiler/bundles/compiler.umd.js:24418:41)
[0]     at _getNgModuleMetadata (/Users/adrien/projets/portfolio/node_modules/@angular/compiler-cli/src/ngtools_impl.js:138:31)
[0]     at _extractLazyRoutesFromStaticModule (/Users/adrien/projets/portfolio/node_modules/@angular/compiler-cli/src/ngtools_impl.js:109:26)
[0]     at Object.listLazyRoutesOfModule (/Users/adrien/projets/portfolio/node_modules/@angular/compiler-cli/src/ngtools_impl.js:53:22)
[0]     at Function.NgTools_InternalApi_NG_2.listLazyRoutes (/Users/adrien/projets/portfolio/node_modules/@angular/compiler-cli/src/ngtools_api.js:91:39)
[0]     at AotPlugin._getLazyRoutesFromNgtools (/Users/adrien/projets/portfolio/node_modules/@ngtools/webpack/src/plugin.js:212:44)
[0]     at _donePromise.Promise.resolve.then.then.then.then.then (/Users/adrien/projets/portfolio/node_modules/@ngtools/webpack/src/plugin.js:448:24)
[0]     at <anonymous>

I tried to manualy change the version but it did not work ... I don't know how I can solve this problem

cipchk commented 7 years ago

you can try the following steps: