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

upgrade @angular-devkit & ngx-build-plus to solve compilation issue #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

juristr
Copy link

@juristr juristr commented Mar 13, 2019

Cloned the repo and got a compilation error similar to this:

ERROR in : TypeError: Cannot read property 'kind' of undefined
    at declareSymbolAndAddToSymbolTable (/Users/juri/coding/workshop/codemotion/angular-elements-dashboard/node_modules/typescript/lib/typescript.js:27819:31)
    at bindPropertyOrMethodOrAccessor (/Users/juri/coding/workshop/codemotion/angular-elements-dashboard/node_modules/typescript/lib/typescript.js:28963:19)
    at bindWorker (/Users/juri/coding/workshop/codemotion/angular-elements-dashboard/node_modules/typescript/lib/typescript.js:28408:28)
    at bind (/Users/juri/coding/workshop/codemotion/angular-elements-dashboard/node_modules/typescript/lib/typescript.js:28246:13)
    at bindSourceFile (/Users/juri/coding/workshop/codemotion/angular-elements-dashboard/node_modules/typescript/lib/typescript.js:26593:17)
    at Object.bindSourceFile (/Users/juri/coding/workshop/codemotion/angular-elements-dashboard/node_modules/typescript/lib/typescript.js:26534:9)
    at initializeTypeChecker (/Users/juri/coding/workshop/codemotion/angular-elements-dashboard/node_modules/typescript/lib/typescript.js:56480:20)
    at Object.createTypeChecker (/Users/juri/coding/workshop/codemotion/angular-elements-dashboard/node_modules/typescript/lib/typescript.js:30758:9)
    at getDiagnosticsProducingTypeChecker (/Users/juri/coding/workshop/codemotion/angular-elements-dashboard/node_modules/typescript/lib/typescript.js:85043:93)
    at /Users/juri/coding/workshop/codemotion/angular-elements-dashboard/node_modules/typescript/lib/typescript.js:85171:35
    at runWithCancellationToken (/Users/juri/coding/workshop/codemotion/angular-elements-dashboard/node_modules/typescript/lib/typescript.js:85144:24)m
    at getSemanticDiagnosticsForFileNoCache (/Users/juri/coding/workshop/codemotion/angular-elements-dashboard/node_modules/typescript/lib/typescript.js:85167:20)
    at getAndCacheDiagnostics (/Users/juri/coding/workshop/codemotion/angular-elements-dashboard/node_modules/typescript/lib/typescript.js:85415:26)
    at getSemanticDiagnosticsForFile (/Users/juri/coding/workshop/codemotion/angular-elements-dashboard/node_modules/typescript/lib/typescript.js:85164:20)
    at getDiagnosticsHelper (/Users/juri/coding/workshop/codemotion/angular-elements-dashboard/node_modules/typescript/lib/typescript.js:85106:24)
    at Object.getSemanticDiagnostics (/Users/juri/coding/workshop/codemotion/angular-elements-dashboard/node_modules/typescript/lib/typescript.js:85119:20)

ERROR in ./src/main.ts
Module build failed: 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 (/Users/juri/coding/workshop/codemotion/angular-elements-dashboard/node_modules/@ngtools/webpack/src/loader.js:33:15)

Upgrading the @Angular-devkit & ngx-build-plus seems to solve it 😃.

Btw, thx for sharing such great example projects 👍. Awesome job 👏

@juristr
Copy link
Author

juristr commented Mar 13, 2019

Just pushed another commit (for convenience reasons into this same branch) that also fixes the broken external-dashboard-tile mentioned in #4

@j0wey j0wey mentioned this pull request Jun 17, 2019
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

Successfully merging this pull request may close these issues.

1 participant