Closed astorije-vmware closed 5 months ago
Hmm, so I suspect the issue is that webpack-build-notifier
depends on webpack@4.x
and your project is dependent upon webpack@5.x
, and there is a type discrepancy between versions.
Regardless, I don't think your TS build should be transpiling (or type-checking) the webpack-build-notifier
package. Does your tsconfig exclude node_modules
?
Fixed in #91 and #92.
I don't have a minimal repro config at the moment, but it seems like when compiling a Webpack config file from TS to JS* using
tsc --build
, the following errors appear:I also had to install
@types/node-notifier
on my repo to silence a few errors (I'm happy to post them as well), which is super weird, but at least it was easy to fix.Is there any workaround I could use?
Versions:
* Context is that we have a shared Webpack config for all our repositories, that we write in TypeScript, then compile into a regular JS package.