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

Global @types functions not being recognized #131

Open
nick-pww opened this issue Jan 10, 2018 · 2 comments
Open

Global @types functions not being recognized #131

nick-pww opened this issue Jan 10, 2018 · 2 comments

Comments

@nick-pww
Copy link

Just upgrade to 2.5.3 from 2.1.X and am having issues where functions like "require('...')" from node and "describe('...')" from Jasmine are being flagged with 'Cannot find name'. These worked fine in the older versions.

I've tried removing the NetBeans cache as well as updating those particular dependencies.

It seems like if I add import statements for these specifically it stops complaining:

import 'jasmine';
import 'node';

But then I when I actually compile (using webpack) it complains about not finding the node module. With out these changes everything compiles fine.

@qbixus
Copy link

qbixus commented Feb 19, 2018

I have the same issue. Possible workaround is to put /// into root custom.d.ts - at least, it works in my case.

@majalette
Copy link

I had the same problem with version 2.5.3.0
I managed to fix it by adding "typeRoots" : ["./node_modules/@types"] to compilerOptions in tsconfig.json and restarting netbeans.

Hope this helps

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

No branches or pull requests

3 participants