-
Notifications
You must be signed in to change notification settings - Fork 710
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
Why does TypeDoc think all modules are missing? (Error: Could not find a declaration file for module) #1089
Comments
Steps to reproduce the bugClone https://github.com/infamous/infamous, checkout the branch That should give the errors. |
Geez, I think that's the first time I've cloned something that took longer than the TypeScript repo to install dependencies... Notes while debugging:
Looks like there are a couple issues:
|
@trusktr
Hope, answer is not too late :) |
Both of these have been fixed in 0.20, so I'm pretty sure this has been resolved |
I just upgraded to However I still can't build the docs. But my normal lint and build with typescript works. I also tried to a the > [email protected] docs /stylelint-declaration-strict-value
> typedoc --plugin typedoc-plugin-markdown src/index.ts
Loaded plugin typedoc-plugin-markdown
Error: /stylelint-declaration-strict-value/src/index.ts(2)
Could not find a declaration file for module 'shortcss'. '/stylelint-declaration-strict-value/node_modules/shortcss/lib/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/shortcss` if it exists or add a new declaration (.d.ts) file containing `declare module 'shortcss';`
Error: /stylelint-declaration-strict-value/src/index.ts(3)
Could not find a declaration file for module 'shortcss/lib/list'. '/stylelint-declaration-strict-value/node_modules/shortcss/lib/list.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/shortcss` if it exists or add a new declaration (.d.ts) file containing `declare module 'shortcss/lib/list';`
Error: /stylelint-declaration-strict-value/src/index.ts(4)
Could not find a declaration file for module 'css-values'. '/stylelint-declaration-strict-value/node_modules/css-values/dist/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/css-values` if it exists or add a new declaration (.d.ts) file containing `declare module 'css-values'; |
I'm not having luck with generating TypeScript docs. I've been trying various tools, including TypeDoc, but no luck so far.
Expected Behavior
I have a project that compiles fine with
tsc
,gulp-typescript
andwebpack
.I am hoping to be able to run something like
and get generated docs.
Actual Behavior
I get a bunch of errors like
Environment
The text was updated successfully, but these errors were encountered: