You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I write the following code with a tsconfig that has allowJs = true, I receive the error below.
ERROR in ./src/ts-loader-example/headerBar.tsx
(3,24): error TS2307: Cannot find module 'classnames'.
I expect this to work as per the documentation for 1.8. I have found the following stackoverflow question which shows that there is some other that are unsure on how to accomplish this.
As a developer moving from JS to TS, how do I consume untyped modules with the allowJs flag?
The text was updated successfully, but these errors were encountered:
We don't load JavaScript modules from node_modules in response to imports in TypeScript files currently. There is a pull request out to get this done (#7075) but it is not in yet.
TypeScript Version:
1.8.7
Code
If I write the following code with a tsconfig that has
allowJs = true
, I receive the error below.I expect this to work as per the documentation for 1.8. I have found the following stackoverflow question which shows that there is some other that are unsure on how to accomplish this.
As a developer moving from JS to TS, how do I consume untyped modules with the allowJs flag?
The text was updated successfully, but these errors were encountered: