Replies: 4 comments 7 replies
-
|
FYI: Works fine with |
Beta Was this translation helpful? Give feedback.
-
|
Does changing the directory name to |
Beta Was this translation helpful? Give feedback.
-
|
I bet if you set But my hunch is that the typings are not actually being loaded via If my hunch is correct, adding a |
Beta Was this translation helpful? Give feedback.
-
|
Blake's suggestion also sounds smart; but I wanted to offer a backup. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Custom typings (own path in "typeRoots") are not being loaded when i'm using
@mailchimp/mailchimp_marketing- they provide atypes.d.tsfile which only defines a OpenAPI namespace (and no module) sots-nodejust errors saying thattypes.d.ts is not a module-tschowever also parses my custom typing and correctly identifies the module declaration from my customindex.d.tsfile.Expected Behavior
index.d.tsto be loaded even if there is atypes.d.tsinnode_modules/@mailchimp/mailchimp_marketing/Actual Behavior
Only
types.d.tsis loaded, theindex.d.tsin my customtypings/folder is ignored. Removingtypes.d.tsfromnode_modules/@mailchimp/mailchimp_marketing/resolves the issue.tsccorrectly resolves bothtypes.d.tsandindex.d.tsSteps to reproduce the problem & minimal reproduction
Add a tsconfig with
typeRootsspecified as per https://github.com/TypeStrong/ts-node#help-my-types-are-missing and then do:Specifications
Beta Was this translation helpful? Give feedback.
All reactions