Closed sebilasse closed 7 years ago
Btw: The TypeError's should be explained by the Linter but the
ERROR in ./~/@dojo/core/text.js
would be fixed by adding
node: {
fs: 'empty'
}
to the webpack.config.js
@sebilasse in this case it looks like you are using TS2.4? If so then the Dojo 2 packages have not been updated to be compatible yet.
@agubler But why can't build
do what tsc
does ?
It is impossible for me to fix any TypeErrors in any dependency of any other developer (regardless of the mentioned errors).
Problem : It is not building for tsc warnings.
Expected: It should build what it can.
They are not warnings though, they are errors so I don't think that the project should build using cli-build-webpack
.
You won't need to fix upstream dependencies once the dojo packages have been updated to support TS2.4, until then unfortunately I would recommend not using TS2.4.
@agubler Well, I am developing a long-term thing, so I already fixed these for 2.5 (next) which I am using because of a very cool demo decorator
I did which is producing a JSON Schema, runtime validation and a form component below the widget so that you do not need to write any Schema or /example manually. Also I needed string based enums.
It was easy to fix and above webpack.config insert is at least "working" ...
This can be closed then, I guess.
Using next
is very dangerous for anything that isn't just test code. We keep our versions of TypeScript pinned to minor releases because we have encountered, even in release candidates, late breaking changes that have to be addressed. We tend to very rapidly update the Dojo 2 packages when the release is official, but please do not expect us to pre-fix things. We have enough to worry about with out worrying about supporting people on unstable branches of TypeScript.
We work really closely with the team, and have usually a good idea of what changes in the version will impact us, as well as what features we will rapidly adopt into our code base. I am afraid we can only really consider dealing with issue with released versions. If you have a forward compatible PR, I am sure we would be glad to consider it, but the only version of TypeScript we support our code with is the version that the package depends upon.
also related to https://github.com/dojo/cli-build/issues/131
The problem is again with errors of types of dependencies. I had the same issue with lodash and now I eliminated that I get the errors below. While I fixed any TypeError in any of my own modules I can't fix any of the errors of any dependency.
It has absolutely no effect on the JS part, so can I ignore them somehow ?
As you can see in the end, nothing is built ...
> dojo build -w
: