Harvest-Dev / ng-walkthrough

A walkthrough for Angular
MIT License
21 stars 8 forks source link

AoT error #7

Closed enricodeleo closed 6 years ago

enricodeleo commented 6 years ago

The module causes an error during AoT compiling:

[23:13:55]  typescript error
            Error encountered resolving symbol values statically. Could not resolve @angular/cdk/portal relative to
            /Users/enrico/Development/app/node_modules/angular-walkthrough/angular-walkthrough.d.ts.,
            resolving symbol WalkthroughModule in
            /Users/enrico/Development/app/node_modules/angular-walkthrough/angular-walkthrough.d.ts,
            resolving symbol WalkthroughModule in
            /Users/enrico/Development/app/node_modules/angular-walkthrough/angular-walkthrough.d.ts

Error: The Angular AoT build failed. See the issues above
    at /Users/enrico/Development/app/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:237:55
    at step (/Users/enrico/Development/app/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:32:23)
    at Object.next (/Users/enrico/Development/app/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:13:53)
    at fulfilled (/Users/enrico/Development/app/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:4:58)
    at <anonymous>
Zefling commented 6 years ago

What is your version of Angular?

enricodeleo commented 6 years ago

Angular 5 (Ionic 3.9.2)

Zefling commented 6 years ago

Did you try this? npm install --save @angular/cdk

enricodeleo commented 6 years ago

I overlooked that :) It seems to work now. Thanks!

Zefling commented 6 years ago

Cool.

Note : angular/cdk is in required points. ;)