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.ts
file which only defines a OpenAPI namespace (and no module) sots-node
just errors saying thattypes.d.ts is not a module
-tsc
however also parses my custom typing and correctly identifies the module declaration from my customindex.d.ts
file.Expected Behavior
index.d.ts
to be loaded even if there is atypes.d.ts
innode_modules/@mailchimp/mailchimp_marketing/
Actual Behavior
Only
types.d.ts
is loaded, theindex.d.ts
in my customtypings/
folder is ignored. Removingtypes.d.ts
fromnode_modules/@mailchimp/mailchimp_marketing/
resolves the issue.tsc
correctly resolves bothtypes.d.ts
andindex.d.ts
Steps to reproduce the problem & minimal reproduction
Add a tsconfig with
typeRoots
specified 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