Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build:Cannot find type definition file for webpack-env

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?

  1. npm init -y (to get/create package.json)
  2. npm install

FYI: we have a webpack-env folder under @types folder

like image 788
Jonny Boy Avatar asked Jan 23 '18 15:01

Jonny Boy


1 Answers

Go to 'Dependencies' -> right click on 'npm' and click 'Restore Packagesenter image description here

like image 173
Ahmed Mostafa Avatar answered Nov 18 '22 02:11

Ahmed Mostafa