質問編集履歴

1

追記

2022/04/15 13:46

投稿

max123
max123

スコア0

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,6 @@
1
1
  githubからダウンロードしたwebアプリを開発環境で実行したいのですが、ブラウザが真っ白になってしまい何も描画されません。
2
2
 
3
- ・githubからclone後、package-load.json、node_modulesを削除の上、プロジェクトフォルダ内でyarnをインストール。buildの上、``yarn run start``で実行すると、コード内の変数についてwarningが出る(defined but never used)が、エラーはなく、localhost::3000が開くものの、真っ白という状態。
3
+ ・githubからclone後、package-lock.json、node_modulesを削除の上、プロジェクトフォルダ内でyarnをインストール。buildの上、``yarn run start``で実行すると、コード内の変数についてwarningが出る(defined but never used)が、エラーはなく、localhost::3000が開くものの、真っ白という状態。
4
4
  ・index.js内の``BrowserRouter``を``HasuRouter``にしてみるー>効果なし
5
5
  ・package.jsonに``"homepage": "."``,を追加ー>効果なし。``"homepage": "./"``,でも同様。そもそもgithubからダウンロードした時にはhomepageの項目はなかったので、なくても作用していた模様。
6
6
  ・``set NODE_ENV = development``を実行済み。
@@ -10,3 +10,16 @@
10
10
 
11
11
  不足している情報があれば可能な限り補足させていただきます。
12
12
  ご意見いただけましたら幸いです。何卒よろしくお願い申し上げます。
13
+
14
+
15
+ [追記]
16
+ package-lock.jsonはgithub内でもともと提供されていたので、それを入れたままnpm startを試みましたが、下記のようなコメントが出て実行できませんでした。やはり一度消さないとダメなようです。
17
+
18
+ ```ここに言語を入力
19
+ To fix the dependency tree, try following the steps below in the exact order:
20
+
21
+ 1. Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder.
22
+ 2. Delete node_modules in your project folder.
23
+ 3. Remove "webpack" from dependencies and/or devDependencies in the package.json file in your project folder.
24
+ 4. Run npm install or yarn, depending on the package manager you use.
25
+ ```