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
I've noticed that using AOT to build the project makes the process fail:
jplatasv@hostname:~/someprojectpath$ ng build --target=production --environment=prod
Your global Angular CLI version (1.4.5) is greater than your local
version (1.4.3). The local Angular CLI version is used.
To disable this warning use "ng set --global warnings.versionMismatch=false".
Date: 2017-10-19T08:01:16.627Z
Hash: 751d59b4a91ca382ecf2
Time: 2299ms
chunk {0} styles.3367d77994252802baa7.bundle.css (styles) 43 bytes {3} [initial] [rendered]
chunk {1} polyfills.3bc34265385d52184eab.bundle.js (polyfills) 86 bytes {3} [initial] [rendered]
chunk {2} main.e402deade8b026b7d50e.bundle.js (main) 84 bytes [initial] [rendered]
chunk {3} inline.22b7623ed7c5ac6f9a35.bundle.js (inline) 1.45 kB [entry] [rendered]
ERROR in Error: Cannot determine the module for class PdfViewerComponent in /home/someprojectpath/node_modules/ng2-pdf-viewer/dist/pdf-viewer.component.d.ts! Add PdfViewerComponent to the NgModule to fix it.
at Error (native)
at syntaxError (/home/someprojectpath/node_modules/@angular/compiler/bundles/compiler.umd.js:1729:34)
at analyzeAndValidateNgModules (/home/someprojectpath/node_modules/@angular/compiler/bundles/compiler.umd.js:24306:15)
at AotCompiler.analyzeModulesAsync (/home/someprojectpath/node_modules/@angular/compiler/bundles/compiler.umd.js:23937:46)
at CodeGenerator.codegen (/home/someprojectpath/node_modules/@angular/compiler-cli/src/codegen.js:32:14)
at Function.NgTools_InternalApi_NG_2.codeGen (/home/someprojectpath/node_modules/@angular/compiler-cli/src/ngtools_api.js:73:30)
at _donePromise.Promise.resolve.then (/home/someprojectpath/node_modules/@ngtools/webpack/src/plugin.js:386:44)
at process._tickCallback (internal/process/next_tick.js:109:7)
This does not happen when AOT is disabled:
jplatasv@hostname:~/someprojectpath$ ng build --target=production --environment=prod --aot false
Your global Angular CLI version (1.4.5) is greater than your local
version (1.4.3). The local Angular CLI version is used.
To disable this warning use "ng set --global warnings.versionMismatch=false".
Date: 2017-10-19T08:10:00.007Z
Hash: 12ce0a0203ed08867f9f
Time: 26391ms
chunk {0} polyfills.d8d3d78a4deb2ab66856.bundle.js (polyfills) 66.1 kB {4} [initial] [rendered]
chunk {1} main.6a39ab8d0b201c6d59b4.bundle.js (main) 89.5 kB {3} [initial] [rendered]
chunk {2} styles.3367d77994252802baa7.bundle.css (styles) 43 bytes {4} [initial] [rendered]
chunk {3} vendor.ba8abec385dc996b45cf.bundle.js (vendor) 1.35 MB [initial] [rendered]
chunk {4} inline.f3df3004ae624d7c4a8c.bundle.js (inline) 1.45 kB [entry] [rendered]
The text was updated successfully, but these errors were encountered:
Hi,
I've noticed that using AOT to build the project makes the process fail:
This does not happen when AOT is disabled:
The text was updated successfully, but these errors were encountered: