I use typings-for-css-modules-loader to generate the dts file of css and less file. Then the ts will report
WARNING in ./path/to/*.less.d.ts
Module build faild (from ./node_modules/[email protected]@ts-loader/index.js)
Error: Debug Failure. Output generation failed
at Object.transpileModule(/path/to/typescrit.js:108135:29)
...
Even if I config the reportFiles to ['src/**/*.(ts,tsx)'], it not work.
And ['src/**/*.(ts,tsx)', '!src/**/*.{css,less,sass,scss}.d.ts'] still not work.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
any news?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Closing as stale. Please reopen if you'd like to work on this further.
why close this ? Met the same issues.
Reopening so @Yidada can work on this.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
any news?
Any news? The same to me.
@vipcxj @Yidada After seeing https://stackoverflow.com/questions/38231645/typescriptwebpack-typescript-emmited-no-output-for-index-d-ts,I guess the error is caused by lack of appropriate loader to handle .d.ts files, so i use ignore-loader to ignore {css,less,sass,scss}.d.ts files and it works for me.
I guess when setting extensions by webpack, *.css.d.ts is also handled by ts-loader due to test: /\.ts/, which hitting this rule, but can not handle it.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Closing as stale. Please reopen if you'd like to work on this further.
Most helpful comment
@vipcxj @Yidada After seeing https://stackoverflow.com/questions/38231645/typescriptwebpack-typescript-emmited-no-output-for-index-d-ts,I guess the error is caused by lack of appropriate loader to handle
.d.tsfiles, so i use ignore-loader to ignore{css,less,sass,scss}.d.tsfiles and it works for me.I guess when setting extensions by webpack,
*.css.d.tsis also handled byts-loaderdue totest: /\.ts/, which hitting this rule, but can not handle it.