Closed subaru-hello closed 2 years ago
herokuデプロイ時に下記エラーが出たので、error_dealブランチを試みる。 Error: Cannot find module '/tmp/build_b11b0bfb/webpack.config.js'
この記事によると、package-logk.jsonを削除するといいと書いてある。
I solved the same problem by reinstalling, execute these commands rm -Rf node_modules rm -f package-lock.json npm install
しかし、-fは危険だから気をつけるべきとも。
[bb1b3a4] node_module以下を下記コマンドで削除
$rm -Rf node_modules
yarnで再インストールをしたら無事herokuへデプロイできた。 $ yarn
概要
herokuデプロイ時に下記エラーが出たので、error_dealブランチを試みる。 Error: Cannot find module '/tmp/build_b11b0bfb/webpack.config.js'
この記事によると、package-logk.jsonを削除するといいと書いてある。
しかし、-fは危険だから気をつけるべきとも。