-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
Error: Debug Failure. False expression: Unexpected node. #11933
Comments
I am going to attempt to isolate the issue by removing code until the issue goes away. |
Actually, the issue seems to be resolved in (2.1.0-dev.20161029) |
|
Issue seems to be with import { Component, ViewChild, Input, Output, EventEmitter } from '@angular/core';
import { ModalDirective } from 'ng2-bootstrap';
@Component( {
selector: 'modal-choose',
templateUrl: 'templates/modal/choose.html'
} )
export class ModalChooseComponent {
@ViewChild('chooseModal')
protected chooseModal: ModalDirective;
@Output()
public onChoose = new EventEmitter<string>();
@Input()
public title = '';
@Input()
public prompt = '';
@Input()
public buttons = [] as string[];
@Input( 'default-button' )
protected dismiss() {
const { defaultButton } = this;
if( defaultButton ) {
this.choose( defaultButton );
} else {
this.hide();
}
}
protected choose( button: string ) {
this.onChoose.next( button );
this.hide();
}
public show() {
const { chooseModal } = this;
chooseModal.show();
}
public hide() {
const { chooseModal } = this;
chooseModal.hide();
}
} |
I can ont get the error to reproduce locally. can you share more context? |
git clone https://github.com/errorx666/r3 --branch repro-11933
cd r3
npm install
node node_modules/typescript/bin/tsc -p client/tsconfig.json |
this is what i am seeing following these steps: c:\test\11933\r3>node node_modules/typescript/bin/tsc -p client/tsconfig.json
client/ts/components/board.ts(3,28): error TS2307: Cannot find module 'rxjs/Rx'.
client/ts/components/board.ts(5,79): error TS2307: Cannot find module '@angular/core'.
client/ts/components/chat.ts(1,28): error TS2307: Cannot find module 'rxjs/Rx'.
client/ts/components/chat.ts(2,56): error TS2307: Cannot find module '@angular/core'.
client/ts/components/game.ts(6,45): error TS2307: Cannot find module 'rxjs/Rx'.
client/ts/components/game.ts(8,34): error TS2307: Cannot find module '@angular/core'.
client/ts/components/lobby.ts(1,38): error TS2307: Cannot find module '@angular/core'.
client/ts/components/modal/choose.ts(1,67): error TS2307: Cannot find module '@angular/core'.
client/ts/components/modal/choose.ts(2,32): error TS2307: Cannot find module 'ng2-bootstrap'.
client/ts/components/modal/create-room.ts(1,38): error TS2307: Cannot find module '@angular/core'.
client/ts/components/modal/create-room.ts(3,32): error TS2307: Cannot find module 'ng2-bootstrap'.
client/ts/components/r3.ts(1,45): error TS2307: Cannot find module '@angular/core'.
client/ts/components/room.ts(1,27): error TS2307: Cannot find module '@angular/core'.
client/ts/default.ts(3,40): error TS2307: Cannot find module '@angular/platform-browser-dynamic'.
client/ts/modules/app.ts(1,26): error TS2307: Cannot find module '@angular/core'.
client/ts/modules/app.ts(2,31): error TS2307: Cannot find module '@angular/platform-browser'.
client/ts/modules/app.ts(3,30): error TS2307: Cannot find module '@angular/common'.
client/ts/modules/app.ts(4,29): error TS2307: Cannot find module '@angular/forms'.
client/ts/modules/app.ts(5,28): error TS2307: Cannot find module '@angular/http'.
client/ts/modules/modal.ts(1,26): error TS2307: Cannot find module '@angular/core'.
client/ts/modules/modal.ts(2,30): error TS2307: Cannot find module '@angular/common'.
client/ts/modules/modal.ts(3,29): error TS2307: Cannot find module '@angular/forms'.
client/ts/modules/modal.ts(5,47): error TS2307: Cannot find module 'ng2-bootstrap'.
client/ts/services/game.ts(1,36): error TS2307: Cannot find module '@angular/core'.
client/ts/services/room.ts(1,60): error TS2307: Cannot find module 'rxjs/Rx'.
client/ts/services/room.ts(2,36): error TS2307: Cannot find module '@angular/core'.
client/ts/services/session.ts(1,43): error TS2307: Cannot find module 'rxjs/Rx'.
client/ts/services/session.ts(2,28): error TS2307: Cannot find module '@angular/core'.
ts/fsm.ts(1,28): error TS2307: Cannot find module 'rxjs/Observable'.
ts/fsm.ts(2,33): error TS2307: Cannot find module 'rxjs/BehaviorSubject'.
ts/fsm.ts(3,33): error TS2307: Cannot find module 'rxjs/observable/ArrayObservable'. |
@mhegazy Sounds like you need to npm install both dev and production dependencies. My mistake. |
no luck still: c:\test\11933\r3>node node_modules/typescript/bin/tsc -p client/tsconfig.json
c:\test\11933\r3>echo %ERRORLEVEL%
0 |
Almost same issue with typescript@2.2.0-dev.20161130 and typescript@2.1.1 (rc):
But happens only with ts-loader or awesome-typescript-loader. UPD. happens if
then:
|
Can you share more context. i can not get this to repro locally: c:\test>type a.ts
class Member { }
class BLabla {
@inject private member: Member | null = null;
}
c:\test>tsc --v
Version 2.2.0-dev.20161130
c:\test>tsc a.ts --emitDecoratorMetadata --experimentalDecorators
a.ts(4,4): error TS2304: Cannot find name 'inject'. |
I never pinpointed the issue, but I was not using awesome-typescript-loader (or webpack), so I do not think that is related. |
A repro project would be appreciated. |
@errorx666 I tried repro steps in #11933 (comment) and just like @mhegazy I haven't been able to repro this. Need a repro to be able to look into this. Thanks. |
For the related issue, #12684 I was able to repro immediately using the instructions in #12684 (comment) |
I am not sure what kind of interactions with the plugins going there in the repro. But if I did below steps I don't repro the issue:
|
Any solution ERROR in ./node_modules/crypto-js/core.js |
@ASHISH060792 this is almost 2 years old issue with some 8 releases in between. Please file a new issue, and give us some repro steps, or sample project to be able to help you out. |
@ASHISH060792 Did you get any solution for this? I am also facing the same issue. |
TypeScript Version: nightly (2.1.0-dev.20161028)
I'm not sure what code is causing this issue, as I have a few dozen code files and no particular file seems to be called out in the error.
Here is the tsconfig:
The text was updated successfully, but these errors were encountered: