{"action":"created","issue":{"url":"https://api.github.com/repos/JeffreyWay/laravel-mix/issues/533","repository_url":"https://api.github.com/repos/JeffreyWay/laravel-mix","labels_url":"https://api.github.com/repos/JeffreyWay/laravel-mix/issues/533/labels{/name}","comments_url":"https://api.github.com/repos/JeffreyWay/laravel-mix/issues/533/comments","events_url":"https://api.github.com/repos/JeffreyWay/laravel-mix/issues/533/events","html_url":"https://github.com/JeffreyWay/laravel-mix/issues/533","id":212283724,"number":533,"title":"Cannot find module webpack.mix","user":{"login":"aspitzer","id":60192,"avatar_url":"https://avatars0.githubusercontent.com/u/60192?v=4","gravatar_id":"","url":"https://api.github.com/users/aspitzer","html_url":"https://github.com/aspitzer","followers_url":"https://api.github.com/users/aspitzer/followers","following_url":"https://api.github.com/users/aspitzer/following{/other_user}","gists_url":"https://api.github.com/users/aspitzer/gists{/gist_id}","starred_url":"https://api.github.com/users/aspitzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspitzer/subscriptions","organizations_url":"https://api.github.com/users/aspitzer/orgs","repos_url":"https://api.github.com/users/aspitzer/repos","events_url":"https://api.github.com/users/aspitzer/events{/privacy}","received_events_url":"https://api.github.com/users/aspitzer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2017-03-06T23:31:22Z","updated_at":"2018-02-13T03:02:13Z","closed_at":"2017-03-07T14:55:10Z","author_association":"NONE","body":"- Node Version (`node -v`): v7.4.0\r\n- NPM Version (`npm -v`):  v4.0.5\r\n- OS: Ubuntu 16\r\n\r\n### Description:\r\nOn production server get an error when running npm run dev or production. On local env works fine. \r\nServer is a DO server with forge and Envoyer for deploymemts. I think there is something related to the virtual links. \r\n\r\nError I get is:\r\n> 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\r\n\r\nmodule.js:472\r\n    throw err;\r\n    ^\r\n\r\nError: Cannot find module '/home/forge/XXXX/storage/app/webpack.mix'\r\n    at Function.Module._resolveFilename (module.js:470:15)\r\n    at Function.Module._load (module.js:418:25)\r\n    at Module.require (module.js:498:17)\r\n    at require (internal/module.js:20:19)\r\n    at Mix.initialize (/home/forge/pitz.es/storage/app/node_modules/laravel-mix/src/Mix.js:45:9)\r\n    at Object.<anonymous> (/home/forge/pitz.es/storage/app/node_modules/laravel-mix/setup/webpack.config.js:18:5)\r\n    at Module._compile (module.js:571:32)\r\n    at Object.Module._extensions..js (module.js:580:10)\r\n    at Module.load (module.js:488:32)\r\n    at tryModuleLoad (module.js:447:12)\r\n    at Function.Module._load (module.js:439:3)\r\n    at Module.require (module.js:498:17)\r\n    at require (internal/module.js:20:19)\r\n    at requireConfig (/home/forge/pitz.es/storage/app/node_modules/webpack/bin/convert-argv.js:96:18)\r\n    at /home/forge/pitz.es/storage/app/node_modules/webpack/bin/convert-argv.js:109:17\r\n    at Array.forEach (native)\r\n\r\nnpm ERR! Linux 4.4.0-57-generic\r\nnpm ERR! argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"run\" \"dev\"\r\nnpm ERR! node v7.4.0\r\nnpm ERR! npm  v4.0.5\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! pitz@1.0.0 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`\r\nnpm ERR! Exit status 1\r\nnpm ERR!\r\nnpm ERR! Failed at the pitz@1.0.0 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'.\r\nnpm ERR! Make sure you have the latest version of node.js and npm installed.\r\nnpm ERR! If you do, this is most likely a problem with the pitz package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm 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\r\nnpm ERR! You can get information on how to open an issue for this project with:\r\nnpm ERR!     npm bugs pitz\r\nnpm ERR! Or if that isn't available, you can get their info via:\r\nnpm ERR!     npm owner ls pitz\r\nnpm ERR! There is likely additional logging output above.\r\n\r\n\r\n### Steps To Reproduce:\r\nnpm run dev\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/JeffreyWay/laravel-mix/issues/comments/365136435","html_url":"https://github.com/JeffreyWay/laravel-mix/issues/533#issuecomment-365136435","issue_url":"https://api.github.com/repos/JeffreyWay/laravel-mix/issues/533","id":365136435,"user":{"login":"browner12","id":5232313,"avatar_url":"https://avatars0.githubusercontent.com/u/5232313?v=4","gravatar_id":"","url":"https://api.github.com/users/browner12","html_url":"https://github.com/browner12","followers_url":"https://api.github.com/users/browner12/followers","following_url":"https://api.github.com/users/browner12/following{/other_user}","gists_url":"https://api.github.com/users/browner12/gists{/gist_id}","starred_url":"https://api.github.com/users/browner12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/browner12/subscriptions","organizations_url":"https://api.github.com/users/browner12/orgs","repos_url":"https://api.github.com/users/browner12/repos","events_url":"https://api.github.com/users/browner12/events{/privacy}","received_events_url":"https://api.github.com/users/browner12/received_events","type":"User","site_admin":false},"created_at":"2018-02-13T03:02:13Z","updated_at":"2018-02-13T03:02:13Z","author_association":"NONE","body":"Recently upgraded from Elixir to Mix, and am loving it so far.  Just ran into this issue myself trying to deploy to production and compile the assets there.  Not sure what solution I'm going to use.  Might just get rid of the symlink as long as the `yarn install` doesn't take too long.\r\n\r\nI'll definitely throw my hat in the ring for compiling assets during deployment.  I find it easier when working in teams (or even alone) so you avoid the conflicts.  I'm not sure there is One True Way™, but there are ups and downs to both options that you have to weigh for your project."}}
{"actor":{"display_login":"browner12"}}