subaru-hello / Zeroken

一軒目に飲むお酒と飲む順番を提供するアプリ
5 stars 0 forks source link

[fix] yarn fix #104

Closed subaru-hello closed 2 years ago

subaru-hello commented 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は危険だから気をつけるべきとも。

subaru-hello commented 2 years ago

[bb1b3a4] node_module以下を下記コマンドで削除

$rm -Rf node_modules

yarnで再インストールをしたら無事herokuへデプロイできた。 $ yarn