Cannot find module webpack.js error when deploying to azure #1228

Closed
opened 2025-08-09 17:19:21 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @ghost on 11/27/2016

I built and ran the Angular2 template for Visual Studio via Yeoman. Everything runs fine locally, but when I do the git push to azure, I always get this error:

Error: Cannot find module 'D:\home\site\repository\node_modules\webpack\bin\webpack.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
module.js:340
throw err;
^
Error: Cannot find module 'D:\home\site\repository\node_modules\webpack\bin\webpack.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
Project repository (.NETCoreApp,Version=v1.0) will be compiled because expected outputs are missing
Compiling repository for .NETCoreApp,Version=v1.0

*Originally created by @ghost on 11/27/2016* I built and ran the Angular2 template for Visual Studio via Yeoman. Everything runs fine locally, but when I do the git push to azure, I always get this error: Error: Cannot find module 'D:\home\site\repository\node_modules\webpack\bin\webpack.js' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:906:3 module.js:340 throw err; ^ Error: Cannot find module 'D:\home\site\repository\node_modules\webpack\bin\webpack.js' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:906:3 Project repository (.NETCoreApp,Version=v1.0) will be compiled because expected outputs are missing Compiling repository for .NETCoreApp,Version=v1.0
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1228
No description provided.