-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Cannot find module 'fs' #5812
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
Comments
What is your |
I wasn't aware of that flag, but I've just added it and put in 'node' as the option and I still get the error. I've used tsd to get install the typings file and referenced it directly rather than referencing the tsd.json fie. top of 'makeModule.ts' file:
tsconfig.json file:
|
Whoops, misread the original issue and removed my comment. |
I'm not able to reproduce the issue. You're saying that you're getting issues at the command line, right? What version of TypeScript are you using? What are you typing on the command line to execute the compiler? |
I've isolated the commands and created a new folder etc, and I can't reproduce the issue. Let me see if it's something to do with some other element in the ts file I've created. |
Found the issue. problemfile.ts contains:
and compile with This generates the errors:
|
this is bug - we should ignore shebang trivia similar to what we do with other kinds of trivia when processing reference comments |
Even tho I installed the latest node @types i get an error when tying to use : How about this one : I tried it with : |
Possibly related to #5149
I'm getting the above error when trying to compile a node reference. I've set up all the typings correctly I believe, my IDE (webStorm) is comfortable with the module name resolution and the compiled files are correct. However the compiler is still throwing these errors for core node components.
Is this a current issue or am I missing something?
The text was updated successfully, but these errors were encountered: