-
Notifications
You must be signed in to change notification settings - Fork 241
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 TS2688: Cannot find type definition file for 'node'. #213
Comments
@dirtyvader angular2-modal doesn't require you to install typings. |
This error also appears in my project after reinstalling angula2-modal. node_modules/angular2-modal/esm/models/errors.d.ts(1,1): error TS2688: Cannot find type definition file for 'node'. |
I was using the [email protected] with [email protected] without any issue (except #207). Any idea? |
Just adding more info above, I have replaced previous installed angular2-modal in the node_module. It works fine, however, as soon as I reinstall the angular2-modal, the error above appears again. I'm using 2.0.0-beta13 |
Can you each write the import method you use?webpack? SystemJS? Etc... |
I use systemjs |
I am using webpack, but I am having the same issue. No problem with the same configuration in beta 13. |
SystemJS too. Settings not changed since it worked (angular 2.0.0 & angular2-modal beta 13) |
Same here with Webpack. The same configuration worked with angular-2.0.0 and angular2-modal beta.13. |
The error appears during transpilation process (running tsc): "compilerOptions": {"target": "es5","module": "commonjs","moduleResolution": "node" |
@shlomiassaf |
I have a same bug with
|
my package.json:
|
To me, you all have to migrate to typescript 2.0 remove the typings and import the @typing libs, including the @typings/node lib in your package.json. I had this issue and it solved it. |
@halfonf Can you explain more about that ? I'm new to typescript and typings |
@halfonf you should not have to use the |
@kisdaniel you have |
Hi guys |
can anyone explain which version is compatible with angular 2.0.1? package.json
typings.json:
tsconfig.json
it has a same issue:
|
trying to Migrate from Angular 2 to angular 4 |
@Hassan121Cs I don't use Mocha but I solved :
By re-importing the specific Then modifing the variable at line 85 in |
add types in your tsconfig file { |
This worked perfectly. Thanks for the tip. |
@parassachapara please triple quote code! with > |
The text was updated successfully, but these errors were encountered: