Could not find a declaration file for module #1906
Replies: 3 comments
-
The easiest fix is to enable the https://typestrong.org/ts-node/docs/options#files Add to tsconfig: "ts-node": {"files": true}, |
Beta Was this translation helpful? Give feedback.
-
Sorry forgot to mention. I actually did try that option. Still didn't work.
This should include all |
Beta Was this translation helpful? Give feedback.
-
Ended up adding this |
Beta Was this translation helpful? Give feedback.
-
Search Terms
Could not find a declaration file for module 'json-to-pretty-yaml'
I am trying to upgrade from v9.1.1 to v10.9.1
I keep getting the above error but my I have a
.d.ts
file in the directory for this module. It worked totally fine with the older version.I tried many things like adding types, typeRoots and paths in the tsconfig. Nothing seems to have any affect.
The code works fine if I run tsc.
This is my tsconfig
Specifications
Beta Was this translation helpful? Give feedback.
All reactions