質問編集履歴
2
文法の修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -18,9 +18,62 @@
|
|
18
18
|
### 該当のソースコード
|
19
19
|
|
20
20
|
```ターミナル
|
21
|
-
heroku logs --tail --app <<アプリケーション名>>
|
21
|
+
heroku logs --tail --app <<アプリケーション名>>を実行
|
22
22
|
|
23
|
+
Enumerating objects: 134, done.
|
24
|
+
Counting objects: 100% (134/134), done.
|
25
|
+
Delta compression using up to 8 threads
|
26
|
+
Compressing objects: 100% (117/117), done.
|
27
|
+
Writing objects: 100% (134/134), 245.72 KiB | 7.93 MiB/s, done.
|
28
|
+
Total 134 (delta 52), reused 0 (delta 0)
|
29
|
+
remote: Compressing source files... done.
|
30
|
+
remote: Building source:
|
31
|
+
remote:
|
32
|
+
remote: -----> Node.js app detected
|
33
|
+
remote:
|
34
|
+
remote: -----> Build failed
|
35
|
+
remote: ! Two different lockfiles found: package-lock.json and yarn.lock
|
36
|
+
remote:
|
37
|
+
remote: Both npm and yarn have created lockfiles for this application,
|
38
|
+
remote: but only one can be used to install dependencies. Installing
|
39
|
+
remote: dependencies using the wrong package manager can result in missing
|
40
|
+
remote: packages or subtle bugs in production.
|
41
|
+
remote:
|
42
|
+
remote: - To use npm to install your application's dependencies please delete
|
43
|
+
remote: the yarn.lock file.
|
44
|
+
remote:
|
45
|
+
remote: $ git rm yarn.lock
|
46
|
+
remote:
|
47
|
+
remote: - To use yarn to install your application's dependences please delete
|
48
|
+
remote: the package-lock.json file.
|
49
|
+
remote:
|
50
|
+
remote: $ git rm package-lock.json
|
51
|
+
remote:
|
52
|
+
remote: https://help.heroku.com/0KU2EM53
|
53
|
+
remote:
|
54
|
+
remote: ! Push rejected, failed to compile Node.js app.
|
55
|
+
remote:
|
56
|
+
remote: ! Push failed
|
57
|
+
remote: !
|
58
|
+
remote: ! ## Warning - The same version of this code has already been built: 3f71b4980da99e38ad0ed4be086a3ef6c97289ad
|
59
|
+
remote: !
|
60
|
+
remote: ! We have detected that you have triggered a build from source code with version 3f71b4980da99e38ad0ed4be086a3ef6c97289ad
|
61
|
+
remote: ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.
|
62
|
+
remote: !
|
63
|
+
remote: ! If you are developing on a branch and deploying via git you must run:
|
64
|
+
remote: !
|
65
|
+
remote: ! git push heroku <branchname>:main
|
66
|
+
remote: !
|
67
|
+
remote: ! This article goes into details on the behavior:
|
68
|
+
remote: ! https://devcenter.heroku.com/articles/duplicate-build-version
|
69
|
+
remote:
|
70
|
+
remote: Verifying deploy...
|
71
|
+
remote:
|
72
|
+
remote: ! Push rejected to task0202.
|
73
|
+
remote:
|
23
|
-
https://
|
74
|
+
To https://git.heroku.com/task0202.git
|
75
|
+
! [remote rejected] master -> master (pre-receive hook declined)
|
76
|
+
error: failed to push some refs to 'https://git.heroku.com/task0202.git'
|
24
77
|
```
|
25
78
|
|
26
79
|
### 試したこと
|
1
文法の修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -5,6 +5,9 @@
|
|
5
5
|
Vue.js、Vuexでトレロ風アプリを作っています。
|
6
6
|
herokuにデプロイする際にエラーが発生しています。
|
7
7
|
|
8
|
+
試したことに記載しているサイトを参考にしながら行ったのですが、解決できません。
|
9
|
+
ご教授お願い致します。
|
10
|
+
|
8
11
|
### 発生している問題・エラーメッセージ
|
9
12
|
|
10
13
|
```
|