Trying To Configure A New Webpack + Angular2 Project And I'm Getting Error Ts2384: Overload Signatures Must All Be Ambient Or Non-ambient
I'm trying to configure a new webpack + angular2 project and I'm getting some errors: When I use 'npm start', I got a lot of errors like this: ERROR in ./~/reflect-metadata/Reflec
Solution 1:
This occurs because of reflect-metadata@0.1.4.
Downgrade to reflect-metadata@0.1.3 to avoid these errors for the moment!
Solution 2:
This happens because of dynamic requires in your code I think. The way to get around it is to use the ContextREplacementPlugin
. At least if you are using webpack 1.x. Maybe webpack2 does this for you.
new webpack.ContextReplacementPlugin(/reflect/, /^$/)
Solution 3:
Upgrading to webpack2 solves the issue.
Post a Comment for "Trying To Configure A New Webpack + Angular2 Project And I'm Getting Error Ts2384: Overload Signatures Must All Be Ambient Or Non-ambient"