node.js - Node/Webpack on Laravel is going Bonkers -


i have been compiling project many months , has never been issue. coding of today npm run watch on. stop compiling css, watch still running css not updating.

a commit bitbucket reveals following:

public/mix-manifest.json

{ -  "/js/app.js": "/js/app.js", -  "/css/app.css": "/css/app.css" +  "/js/app.js": "/js/app.js" } 

the app.css has been removed?

public/js/app.js

 /******/   function __webpack_require__(moduleid) {  /******/  /******/       // check if module in cache -/******/       if(installedmodules[moduleid]) { +/******/       if(installedmodules[moduleid])  /******/           return installedmodules[moduleid].exports; -/******/       } +/******/  /******/       // create new module (and put cache)  /******/       var module = installedmodules[moduleid] = {  /******/           i: moduleid, 

...

 /***/ (function(module, __webpack_exports__, __webpack_require__) {   "use strict"; -object.defineproperty(__webpack_exports__, "__esmodule", { value: true }); -/* webpack var injection */(function($) {/* harmony import */ var         __webpack_imported_module_0__components_passwordvalidator__ = __webpack_require__(9); +/* webpack var injection */(function($) {object.defineproperty(__webpack_exports__, "__esmodule", { value: true }); +/* harmony import */ var __webpack_imported_module_0__components_passwordvalidator__ = __webpack_require__(9);  /* harmony import */ var __webpack_imported_module_1__components_passwordshowhide__ = __webpack_require__(8);  /* harmony import */ var __webpack_imported_module_2__components_selectcomponent__ = __webpack_require__(10);  /* harmony import */ var __webpack_imported_module_3__components_showhidecomponent__ = __webpack_require__(11); 

...

 /* 2 */  /***/ (function(module, exports) {  -// removed extract-text-webpack-plugin +throw new error("module build failed: modulenotfounderror: module not found: error: can't resolve './images/dashboard-details-2.jpg' in 'f:\\openvisa-webapp\\resources\\assets\\sass'\n    @ factorycallback (f:\\openvisa-webapp\\node_modules\\webpack\\lib\\compilation.js:260:39)\n    @ f:\\openvisa-webapp\\node_modules\\webpack\\lib\\normalmodulefactory.js:243:19\n    @ ondoneresolving (f:\\openvisa-webapp\\node_modules\\webpack\\lib\\normalmodulefactory.js:59:20)\n    @ f:\\openvisa-webapp\\node_modules\\webpack\\lib\\normalmodulefactory.js:132:20\n    @ f:\\openvisa-webapp\\node_modules\\webpack\\node_modules\\async\\dist\\async.js:3799:9\n    @ f:\\openvisa-webapp\\node_modules\\webpack\\node_modules\\async\\dist\\async.js:360:16\n    @ iteratorcallback (f:\\openvisa-webapp\\node_modules\\webpack\\node_modules\\async\\dist\\async.js:934:13)\n    @ f:\\openvisa-webapp\\node_modules\\webpack\\node_modules\\async\\dist\\async.js:844:16\n    @ f:\\openvisa-webapp\\node_modules\\webpack\\node_modules\\async\\dist\\async.js:3796:13\n    @ apply (f:\\openvisa-webapp\\node_modules\\webpack\\node_modules\\async\\dist\\async.js:21:25)\n    @ f:\\openvisa-webapp\\node_modules\\webpack\\node_modules\\async\\dist\\async.js:56:12\n    @ f:\\openvisa-webapp\\node_modules\\webpack\\lib\\normalmodulefactory.js:124:22\n    @ onresolved (f:\\openvisa-webapp\\node_modules\\enhanced-resolve\\lib\\resolver.js:70:11)\n    @ loggingcallbackwrapper (f:\\openvisa-webapp\\node_modules\\enhanced-resolve\\lib\\createinnercallback.js:31:19)\n    @ afterinnercallback (f:\\openvisa-webapp\\node_modules\\enhanced-resolve\\lib\\resolver.js:138:10)\n    @ loggingcallbackwrapper (f:\\openvisa-webapp\\node_modules\\enhanced-resolve\\lib\\createinnercallback.js:31:19)\n    @ resolver.applypluginsasyncseriesbailresult1 (f:\\openvisa-webapp\\node_modules\\tapable\\lib\\tapable.js:181:46)\n    @ innercallback (f:\\openvisa-webapp\\node_modules\\enhanced-resolve\\lib\\resolver.js:125:19)\n    @ loggingcallbackwrapper (f:\\openvisa-webapp\\node_modules\\enhanced-resolve\\lib\\createinnercallback.js:31:19)\n    @ f:\\openvisa-webapp\\node_modules\\tapable\\lib\\tapable.js:283:15\n    @ f:\\openvisa-webapp\\node_modules\\enhanced-resolve\\lib\\unsafecacheplugin.js:38:4\n    @ loggingcallbackwrapper (f:\\openvisa-webapp\\node_modules\\enhanced-resolve\\lib\\createinnercallback.js:31:19)\n    @ afterinnercallback (f:\\openvisa-webapp\\node_modules\\enhanced-resolve\\lib\\resolver.js:138:10)\n    @ loggingcallbackwrapper (f:\\openvisa-webapp\\node_modules\\enhanced-resolve\\lib\\createinnercallback.js:31:19)\n    @ resolver.applypluginsasyncseriesbailresult1 (f:\\openvisa-webapp\\node_modules\\tapable\\lib\\tapable.js:181:46)\n    @ innercallback (f:\\openvisa-webapp\\node_modules\\enhanced-resolve\\lib\\resolver.js:125:19)\n    @ loggingcallbackwrapper (f:\\openvisa-webapp\\node_modules\\enhanced-resolve\\lib\\createinnercallback.js:31:19)\n    @ f:\\openvisa-webapp\\node_modules\\tapable\\lib\\tapable.js:283:15\n    @ innercallback (f:\\openvisa-webapp\\node_modules\\enhanced-resolve\\lib\\resolver.js:123:11)\n    @ loggingcallbackwrapper (f:\\openvisa-webapp\\node_modules\\enhanced-resolve\\lib\\createinnercallback.js:31:19)");   /***/ }),  /* 3 */ 

i've tried putting configuring public/mix-manifest.json way was:

public/mix-manifest.json

{ "/js/app.js": "/js/app.js", "/css/app.css": "/css/app.css" } 

run npm run watch or npm run dev , remove "/css/app.css": "/css/app.css"

public/mix-manifest.json

{ -"/js/app.js": "/js/app.js", -"/css/app.css": "/css/app.css" +"/js/app.js": "/js/app.js"  } 

the node error after running npm run dev is:

npm err! windows_nt 10.0.15063 npm err! argv "c:\\program files\\nodejs\\node.exe"     "c:\\users\\cory\\appdata\\roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev" npm err! node v6.11.1 npm err! npm  v3.10.8 npm err! code elifecycle npm err! @ dev: `node node_modules/cross-env/dist/bin/cross-env.js node_env=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js` npm err! exit status 2 npm err! npm err! failed @ @ dev script 'node node_modules/cross-env/dist/bin/cross-env.js node_env=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js'. npm err! make sure have latest version of node.js , npm installed. npm err! if do, problem  package, npm err! not npm itself. npm err! tell author fails on system: npm err!     node node_modules/cross-env/dist/bin/cross-env.js node_env=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js npm err! can information on how open issue project with: npm err!     npm bugs npm err! or if isn't available, can info via: npm err!     npm owner ls npm err! there additional logging output above.  npm err! please include following file support request: npm err!     f:\openvisa-webapp\npm-debug.log 

please note don't error when running npm run watch doesn't compile css, error comes on npm run dev. neitherless error still there on watch.

i have no idea how fix it. i've tried npm install, nothing works.

issue has been resolved. happen if css background images don't have correct path.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -