-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
@types/requirejs Variable 'require' must be of type 'NodeRequire' #15851
Comments
Same Problem here with error message with different order (using webpack1 and ts-loader) node_modules/@types/webpack-env/index.d.ts And node_modules/@types/node/index.d.ts But i also get
UPDATE: if i use at-loader i get the same error as cyandream: but also |
see a may-be solution here https://medium.com/@mindginative/typescript-its-magic-number-ts2403-ef76202185c9 |
I am also facing same problem. this breaks my entire application
Please provide any workaround for this |
same problem #31628 |
Anyone visiting this after years :) Here is what we observed.
|
@types/requirejs
package and had problems.Error from console:
typescript error -
in @types/requirejs/index.d.ts
ln416 declare var require: Require;
And in @types/node/index.d.ts
ln73 declare var require: NodeRequire;
Thanks
Michelle
"typescript": "2.2.1",
Definitions by:
inindex.d.ts
) so they can respond.The text was updated successfully, but these errors were encountered: