question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeScript errors after update to 2.0.0-alpha.8-1

See original GitHub issue

Bug, feature request, or proposal:

After update to angular2 rc6 and angular materials to 2.0.0-alpha.8-1 TSC shows list of errors:

node_modules/@angular2-material/button/button.d.ts(28,14): error TS1005: ‘=’ expected. node_modules/@angular2-material/button/button.d.ts(28,22): error TS1005: ‘;’ expected. node_modules/@angular2-material/button/button.d.ts(29,14): error TS1005: ‘=’ expected. node_modules/@angular2-material/button/button.d.ts(29,28): error TS1005: ‘;’ expected. node_modules/@angular2-material/checkbox/checkbox.d.ts(48,14): error TS1005: ‘=’ expected. node_modules/@angular2-material/checkbox/checkbox.d.ts(48,21): error TS1005: ‘;’ expected. node_modules/@angular2-material/core/overlay/overlay-directives.d.ts(12,14): error TS1005: ‘=’ expected. node_modules/@angular2-material/core/overlay/overlay-directives.d.ts(12,24): error TS1005: ‘;’ expected. node_modules/@angular2-material/core/overlay/overlay-directives.d.ts(24,14): error TS1005: ‘=’ expected. node_modules/@angular2-material/core/overlay/overlay-directives.d.ts(24,24): error TS1005: ‘;’ expected. node_modules/@angular2-material/core/overlay/position/connected-position-strategy.d.ts(24,14): error TS1005: ‘=’ expected. node_modules/@angular2-material/core/overlay/position/connected-position-strategy.d.ts(24,23): error TS1005: ‘;’ expected. node_modules/@angular2-material/core/overlay/position/connected-position-strategy.d.ts(24,47): error TS1005: ‘=’ expected. node_modules/@angular2-material/core/portal/portal.d.ts(14,14): error TS1005: ‘=’ expected. node_modules/@angular2-material/core/portal/portal.d.ts(14,24): error TS1005: ‘;’ expected. node_modules/@angular2-material/core/portal/portal.d.ts(53,14): error TS1005: ‘=’ expected. node_modules/@angular2-material/core/portal/portal.d.ts(53,20): error TS1005: ‘;’ expected. node_modules/@angular2-material/input/input.d.ts(50,14): error TS1005: ‘=’ expected. node_modules/@angular2-material/input/input.d.ts(50,21): error TS1005: ‘;’ expected. node_modules/@angular2-material/input/input.d.ts(51,14): error TS1005: ‘=’ expected. node_modules/@angular2-material/input/input.d.ts(51,19): error TS1005: ‘;’ expected. node_modules/@angular2-material/input/input.d.ts(52,14): error TS1005: ‘=’ expected. node_modules/@angular2-material/input/input.d.ts(52,28): error TS1005: ‘;’ expected. node_modules/@angular2-material/input/input.d.ts(53,14): error TS1005: ‘=’ expected. node_modules/@angular2-material/input/input.d.ts(53,21): error TS1005: ‘;’ expected. node_modules/@angular2-material/input/input.d.ts(82,14): error TS1005: ‘=’ expected. node_modules/@angular2-material/input/input.d.ts(82,20): error TS1005: ‘;’ expected. node_modules/@angular2-material/input/input.d.ts(82,44): error TS1005: ‘(’ expected. node_modules/@angular2-material/input/input.d.ts(83,14): error TS1005: ‘=’ expected. node_modules/@angular2-material/input/input.d.ts(83,21): error TS1005: ‘;’ expected. node_modules/@angular2-material/input/input.d.ts(83,45): error TS1005: ‘(’ expected. node_modules/@angular2-material/input/input.d.ts(85,14): error TS1005: ‘=’ expected. node_modules/@angular2-material/input/input.d.ts(85,20): error TS1005: ‘;’ expected. node_modules/@angular2-material/menu/menu-item.d.ts(13,14): error TS1005: ‘=’ expected. node_modules/@angular2-material/menu/menu-item.d.ts(13,28): error TS1005: ‘;’ expected. node_modules/@angular2-material/menu/menu-trigger.d.ts(23,14): error TS1005: ‘=’ expected. node_modules/@angular2-material/menu/menu-trigger.d.ts(23,22): error TS1005: ‘;’ expected.

What are the steps to reproduce?

just run tsc in console

Which versions of Angular, Material, OS, browsers are affected?

"@angular/common": "^2.0.0-rc.6",
"@angular/compiler": "^2.0.0-rc.6",
"@angular/core": "^2.0.0-rc.6",
"@angular/forms": "^2.0.0-rc.6",
"@angular/http": "^2.0.0-rc.6",
"@angular/platform-browser": "^2.0.0-rc.6",
"@angular/platform-browser-dynamic": "^2.0.0-rc.6",
"@angular/router": "^3.0.0-rc.2",
"@angular2-material/button": "^2.0.0-alpha.8-1",
"@angular2-material/card": "^2.0.0-alpha.8-1",
"@angular2-material/checkbox": "^2.0.0-alpha.8-1",
"@angular2-material/core": "^2.0.0-alpha.8-1",
"@angular2-material/icon": "^2.0.0-alpha.8-1",
"@angular2-material/input": "^2.0.0-alpha.8-1",
"@angular2-material/menu": "^2.0.0-alpha.8-1",
"@angular2-material/slider": "^2.0.0-alpha.8-1",
"@angular2-material/toolbar": "^2.0.0-alpha.8-1",
"typings": "^1.3.3",

OSX 10.11.5 tsc -v 1.8.10 node -v 5.11.1 npm -v 3.8.6

TS Config: { “compilerOptions”: { “target”: “es5”, “module”: “commonjs”, “moduleResolution”: “node”, “sourceMap”: true, “emitDecoratorMetadata”: true, “experimentalDecorators”: true, “removeComments”: false, “noImplicitAny”: false,

"suppressImplicitAnyIndexErrors": true

}, “exclude”: [ “node_modules” ] }

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:21

github_iconTop GitHub Comments

11reactions
kiwikerncommented, Sep 3, 2016

Had the same problem. Material seems to depend on typescript 2.0.0 now due to the usage of the readonly property. I could resolve the errors just by using “typescript”: “^2.0.0”.

7reactions
rspenc29commented, Sep 5, 2016

I was able to fix the issue by changing typescript to "typescript": "^2.0.0" in package.json and passing typescript as a parameter in the gulpfile as instructed here.

var tsProject = ts.createProject('tsconfig.json', {
    typescript: require('typescript')
});

or since I’m using laravel with elixir-typescript I pass the parameters to elixir-typescript which passes it on to gulp-typescript

mix.typescript('/**/*.ts', 'public/dist', {
    typescript: require('typescript')
});

I also had to update my systemjs config and ngModule imports as instructed here.

After that it compiled no problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tsconfig show typescript file not found error after moving it to ...
Issue Type: Bug When I move a typescript file from a directory ... Create a new folder called test , move hello.ts into...
Read more >
Typescript compile errors after upgrading react native project
I'm trying to upgrade a react native project from 0.63. 3 to 0.67. 0, and I'm getting too many errors when I try...
Read more >
TypeScript Errors shown for latest version when project ...
Open the project, build and the build will be successful but after a while the error list will fill up with TypeScript 2.5...
Read more >
Tip: Click on a version number to view a previous ... - npm
a package manager for JavaScript. Latest version: 9.2.0, last published: 18 days ago. Start using npm in your project by running `npm i...
Read more >
Aurelia 2: Breaking change trying to update Aurelia Version
I am trying to update my Aurelia 2 app from version 2.0.0-alpha.21 to ... super(); this.client = new DiscDbClient(); // Error goes away...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found