質問編集履歴

2

文法の修正

2020/10/08 01:29

投稿

sonnabanana
sonnabanana

スコア5

test CHANGED
File without changes
test CHANGED
@@ -38,11 +38,117 @@
38
38
 
39
39
  ```ターミナル
40
40
 
41
- heroku logs --tail --app <<アプリケーション名>>でエラー文確認
41
+ heroku logs --tail --app <<アプリケーション名>>を実行
42
42
 
43
43
 
44
44
 
45
+ Enumerating objects: 134, done.
46
+
47
+ Counting objects: 100% (134/134), done.
48
+
49
+ Delta compression using up to 8 threads
50
+
51
+ Compressing objects: 100% (117/117), done.
52
+
53
+ Writing objects: 100% (134/134), 245.72 KiB | 7.93 MiB/s, done.
54
+
55
+ Total 134 (delta 52), reused 0 (delta 0)
56
+
57
+ remote: Compressing source files... done.
58
+
59
+ remote: Building source:
60
+
61
+ remote:
62
+
63
+ remote: -----> Node.js app detected
64
+
65
+ remote:
66
+
67
+ remote: -----> Build failed
68
+
69
+ remote: ! Two different lockfiles found: package-lock.json and yarn.lock
70
+
71
+ remote:
72
+
73
+ remote: Both npm and yarn have created lockfiles for this application,
74
+
75
+ remote: but only one can be used to install dependencies. Installing
76
+
77
+ remote: dependencies using the wrong package manager can result in missing
78
+
79
+ remote: packages or subtle bugs in production.
80
+
81
+ remote:
82
+
83
+ remote: - To use npm to install your application's dependencies please delete
84
+
85
+ remote: the yarn.lock file.
86
+
87
+ remote:
88
+
89
+ remote: $ git rm yarn.lock
90
+
91
+ remote:
92
+
93
+ remote: - To use yarn to install your application's dependences please delete
94
+
95
+ remote: the package-lock.json file.
96
+
97
+ remote:
98
+
99
+ remote: $ git rm package-lock.json
100
+
101
+ remote:
102
+
103
+ remote: https://help.heroku.com/0KU2EM53
104
+
105
+ remote:
106
+
107
+ remote: ! Push rejected, failed to compile Node.js app.
108
+
109
+ remote:
110
+
111
+ remote: ! Push failed
112
+
113
+ remote: !
114
+
115
+ remote: ! ## Warning - The same version of this code has already been built: 3f71b4980da99e38ad0ed4be086a3ef6c97289ad
116
+
117
+ remote: !
118
+
119
+ remote: ! We have detected that you have triggered a build from source code with version 3f71b4980da99e38ad0ed4be086a3ef6c97289ad
120
+
121
+ remote: ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.
122
+
123
+ remote: !
124
+
125
+ remote: ! If you are developing on a branch and deploying via git you must run:
126
+
127
+ remote: !
128
+
129
+ remote: ! git push heroku <branchname>:main
130
+
131
+ remote: !
132
+
133
+ remote: ! This article goes into details on the behavior:
134
+
135
+ remote: ! https://devcenter.heroku.com/articles/duplicate-build-version
136
+
137
+ remote:
138
+
139
+ remote: Verifying deploy...
140
+
141
+ remote:
142
+
143
+ remote: ! Push rejected to task0202.
144
+
145
+ remote:
146
+
45
- https://gyazo.com/f308316a4eb1ea53d13be8dc004c5dcb
147
+ To https://git.heroku.com/task0202.git
148
+
149
+ ! [remote rejected] master -> master (pre-receive hook declined)
150
+
151
+ error: failed to push some refs to 'https://git.heroku.com/task0202.git'
46
152
 
47
153
  ```
48
154
 

1

文法の修正

2020/10/08 01:29

投稿

sonnabanana
sonnabanana

スコア5

test CHANGED
File without changes
test CHANGED
@@ -9,6 +9,12 @@
9
9
  Vue.js、Vuexでトレロ風アプリを作っています。
10
10
 
11
11
  herokuにデプロイする際にエラーが発生しています。
12
+
13
+
14
+
15
+ 試したことに記載しているサイトを参考にしながら行ったのですが、解決できません。
16
+
17
+ ご教授お願い致します。
12
18
 
13
19
 
14
20