dojo / cli-build-webpack

🚀 **DEPRECATED** Dojo 2 - cli command for building applications
http://dojo.io
Other
4 stars 19 forks source link

"Building a custom element" logs all errors of tsconfig #131

Closed sebilasse closed 7 years ago

sebilasse commented 7 years ago

When I just want to compile an element, ts goes through all my project root and logs all the errors. Building the custom element succeeds! But users could be confused by errors caused by e.g. any node module ...

bildschirmfoto 2017-05-07 um 13 20 47
sebilasse commented 7 years ago

FYI :

This does not occur if I provide a relative path. However – I can't use a relative path because the CSS part is not build then ...

kitsonk commented 7 years ago

Relative paths should be used. When you say:

However – I can't use a relative path because the CSS part is not build then ...

Could you provide more details? We never seem to have an issue with building the CSS when using relative paths.

sebilasse commented 7 years ago

This one is resolved meanwhile since using TS >2.3 In general the underlying problem still exists but is not related with dojo : Let's say a new version from nodemailer uses typings which require TS with support for string Enums (maybe >2.4). These would not work if the development server uses TS <2.4 and so such errors as above prevent the build.

kitsonk commented 7 years ago

Ok, since it is external, I am going to close it. Anyone else encountering it can use this issue as a reference.