we have a .net core Asp.net framework SPA. we performed below commands using Nuget package manager console on VS 2017. This would create all the node_modules stuff but while building the project it would throw error and fail "Build:Cannot find type definition file for 'webpack-env'". It happens for few of us. For some it would happen randomly. We also tried to get node_modules on our build server using VSTS npm step and it would throw the same error. Any help?
FYI: we have a webpack-env folder under @types folder
Go to 'Dependencies' -> right click on 'npm' and click 'Restore Packages
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With