-
-
Notifications
You must be signed in to change notification settings - Fork 433
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
declaration:true in tsconfig causes error #45
Comments
It seems like there are two issues at play here.
|
yes one Tnx for the links, I'll try one of those |
Reopening because there still is the bug to fix |
@flyon I was just looking into fixing this but could not duplicate. I realized that there's actually already a unit test for it since this issue was fixed in v0.5.0. Could you confirm what version of TypeScript and ts-loader you're using? Thanks! |
I don't believe this is a bug anymore (as of v0.5.0). @flyon if I'm incorrect feel free to reopen. Thanks! |
sorry for the late reply, seems to be not an issue anymore with my current version. I do however still want to try and create a single declaration file for my bundles. It seems the module dts-bundle that you mentioned would be a good fit for now, but for that I need single .d.ts files first of all. You mentioned simple to (add support to) output these? currently adding declaration:true to tsconfig.json does nothing. Edit: all add this request to #48 and leave this one closed |
Hey, I would like to get a .d.ts output besides the usual bundle, So I'm trying to add this line to tsconfig.json:
But when I do that I get this error:
ERROR in ./init.ts Module parse failed: F:\wamp\www\davine\sites\terramaya.org\ts\trm\node_modules\ts-loader\index.j s!F:\wamp\www\davine\sites\terramaya.org\ts\trm\node_modules\ts-jsx-loader\index.js!F:\wamp\www\d avine\sites\terramaya.org\ts\trm\init.ts Line 1: Unexpected token : You may need an appropriate loader to handle this file type. | {"version":3,"file":"init.js","sourceRoot":"","sources":["init.ts"],"names":[],"mappings":"AAAA ;;GAEG;AACH,sCAAsC;.....
If I remove the declaration line from tsconfig.json it works fine.
Full tsconfig:
Full webpack.config.js:
Is it possible to get a declaration output file?
The text was updated successfully, but these errors were encountered: