-
Notifications
You must be signed in to change notification settings - Fork 179
Missing declaration files #411
Comments
Just for the record, using ts-loader instead of awesome-typescript-loader currently solves the issue. |
I also had missing declaration files, with no error message when running Running |
@robinspark My guess is that you generated the declaration files when you ran |
@donaldpipowitch Did you ever have any luck resolving this? I'm having the same issue with awesome-typescript-loader, and this issue if I try to switch back to vanilla ts-loader. |
I switched to ts-loader and never looked into this issue again. Sorry :( |
Hello there, any update on this? |
Facing the same issue:
Using ts-loader resolved this issue, but are there any other alternatives until this is fixed. We are too dependent on awesome-typescript-loader at this point. |
Given the following project:
package.json
:tsconfig.json
:webpack.config.js
:src/index.ts
:src/some-interface.ts
:And running
$ npm run build
the generateddist/
directory misses declarations forsrc/some-interface.ts
resulting in an invalid declaration fordist/index.d.ts
, because it can't import 'Foo'.The problems seems to be that
src/some-interface.ts
only contains non-JS code (just aninterface
). If I would export a function there and use that function insrc/index.ts
adist/some-interface.d.ts
would be generated.The text was updated successfully, but these errors were encountered: