質問編集履歴
2
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -145,3 +145,69 @@
|
|
145
145
|
config.assets.js_compressor = :uglifier.new(harmony: true)
|
146
146
|
|
147
147
|
```
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
###追加エラー
|
154
|
+
|
155
|
+
```
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
Installing node-v12.16.2-linux-x64
|
160
|
+
|
161
|
+
remote: -----> Detecting rake tasks
|
162
|
+
|
163
|
+
remote: -----> Preparing app for Rails asset pipeline
|
164
|
+
|
165
|
+
remote: Running: rake assets:precompile
|
166
|
+
|
167
|
+
remote: Yarn executable was not detected in the system.
|
168
|
+
|
169
|
+
remote: Download Yarn at https://yarnpkg.com/en/docs/install
|
170
|
+
|
171
|
+
remote: I, [2020-09-25T09:50:01.782784 #524] INFO -- : Writing /tmp/build_aef7b381/public/assets/application-0e6021ace7b6e1b679b5d7586cb8d657bda03b6e0513de162e01362f406fea55.js
|
172
|
+
|
173
|
+
remote: I, [2020-09-25T09:50:01.783242 #524] INFO -- : Writing /tmp/build_aef7b381/public/assets/application-0e6021ace7b6e1b679b5d7586cb8d657bda03b6e0513de162e01362f406fea55.js.gz
|
174
|
+
|
175
|
+
remote: rake aborted!
|
176
|
+
|
177
|
+
remote: NoMethodError: undefined method `[]' for nil:NilClass
|
178
|
+
|
179
|
+
remote: /tmp/build_aef7b381/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/sass_processor.rb:278:in `sprockets_context'
|
180
|
+
|
181
|
+
remote: /tmp/build_aef7b381/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/sass_processor.rb:124:in `asset_path'
|
182
|
+
|
183
|
+
remote: /tmp/build_aef7b381/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/sass_processor.rb:200:in `font_path'
|
184
|
+
|
185
|
+
remote: /tmp/build_aef7b381/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/script/tree/funcall.rb:151:in `block in _perform'
|
186
|
+
|
187
|
+
remote: /tmp/build_aef7b381/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/stack.rb:108:in `block in with_function'
|
188
|
+
|
189
|
+
remote: /tmp/build_aef7b381/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/stack.rb:135:in `with_frame'
|
190
|
+
|
191
|
+
remote: /tmp/build_aef7b381/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/stack.rb:108:in `with_function'
|
192
|
+
|
193
|
+
remote: /tmp/build_aef7b381/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/script/tree/funcall.rb:149:in `_perform'
|
194
|
+
|
195
|
+
remote: /tmp/build_aef7b381/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/script/tree/node.rb:50:in `perform'
|
196
|
+
|
197
|
+
remote: /tmp/build_aef7b381/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:412:in `visit_return'
|
198
|
+
|
199
|
+
remote: /tmp/build_aef7b381/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/base.rb:36:in `visit'
|
200
|
+
|
201
|
+
remote: /tmp/build_aef7b381/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:158:in `block in visit'
|
202
|
+
|
203
|
+
remote: /tmp/build_aef7b381/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/stack.rb:79:in `block in with_base'
|
204
|
+
|
205
|
+
remote: /tmp/build_aef7b381/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/stack.rb:135:in `with_frame'
|
206
|
+
|
207
|
+
remote: /tmp/build_aef7b381/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/stack.rb:79:in `with_base'
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
```
|
1
修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
herokuデプロイで、NoMethodError: undefined method `
|
1
|
+
herokuデプロイで、NoMethodError: undefined method `new' for :uglifier:Symbolというエラー
|
test
CHANGED
@@ -8,13 +8,23 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
-
|
11
|
+
`:uglifier:Symbol`というのはどうゆうものなのでしょうか。
|
12
|
+
|
13
|
+
エラーの原因はこちらなのでしょうか。。。
|
12
14
|
|
13
15
|
|
14
16
|
|
15
17
|
```
|
16
18
|
|
17
19
|
(略)
|
20
|
+
|
21
|
+
Bundle complete! 30 Gemfile dependencies, 130 gems now installed.
|
22
|
+
|
23
|
+
remote: Gems in the groups development and test were not installed.
|
24
|
+
|
25
|
+
remote: Bundled gems are installed into `./vendor/bundle`
|
26
|
+
|
27
|
+
remote: Post-install message from autoprefixer-rails:
|
18
28
|
|
19
29
|
remote: autoprefixer-rails was deprected. Migration guide:
|
20
30
|
|
@@ -46,7 +56,7 @@
|
|
46
56
|
|
47
57
|
remote: ------------------------------
|
48
58
|
|
49
|
-
remote: Bundle completed (18.4
|
59
|
+
remote: Bundle completed (18.24s)
|
50
60
|
|
51
61
|
remote: Cleaning up the bundler cache.
|
52
62
|
|
@@ -60,39 +70,39 @@
|
|
60
70
|
|
61
71
|
remote: Running: rake assets:precompile
|
62
72
|
|
63
|
-
remote: Yarn executable was not detected in the system.
|
64
|
-
|
65
|
-
remote: Download Yarn at https://yarnpkg.com/en/docs/install
|
66
|
-
|
67
|
-
remote: I, [2020-09-25T06:05:25.443669 #519] INFO -- : Writing /tmp/build_a902e2a2/public/assets/nike_shoes-3630367480426a11a490ab909722efa74d957feaac80eb5c1ba1690bfff910dc.png
|
68
|
-
|
69
|
-
remote: I, [2020-09-25T06:05:30.312712 #519] INFO -- : Writing /tmp/build_a902e2a2/public/assets/application-c7f59e7460556c883f257ebd7aa7526028d7638cde5548eba5649f52ee2ba036.js
|
70
|
-
|
71
|
-
remote: I, [2020-09-25T06:05:30.313278 #519] INFO -- : Writing /tmp/build_a902e2a2/public/assets/application-c7f59e7460556c883f257ebd7aa7526028d7638cde5548eba5649f52ee2ba036.js.gz
|
72
|
-
|
73
73
|
remote: rake aborted!
|
74
74
|
|
75
|
-
remote: NoMethodError: undefined method `
|
75
|
+
remote: NoMethodError: undefined method `new' for :uglifier:Symbol
|
76
76
|
|
77
|
-
remote: /tmp/build_
|
77
|
+
remote: /tmp/build_f6256d5c/config/environments/production.rb:26:in `block in <main>'
|
78
78
|
|
79
|
-
remote: /tmp/build_
|
79
|
+
remote: /tmp/build_f6256d5c/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.3/lib/rails/railtie.rb:216:in `instance_eval'
|
80
80
|
|
81
|
-
remote: /tmp/build_
|
81
|
+
remote: /tmp/build_f6256d5c/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.3/lib/rails/railtie.rb:216:in `configure'
|
82
82
|
|
83
|
-
remote: /tmp/build_
|
83
|
+
remote: /tmp/build_f6256d5c/config/environments/production.rb:1:in `<main>'
|
84
84
|
|
85
|
-
remote: /tmp/build_
|
85
|
+
remote: /tmp/build_f6256d5c/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
|
86
86
|
|
87
|
+
remote: /tmp/build_f6256d5c/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
|
88
|
+
|
87
|
-
remote: /tmp/build_
|
89
|
+
remote: /tmp/build_f6256d5c/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
|
90
|
+
|
91
|
+
remote: /tmp/build_f6256d5c/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
|
92
|
+
|
93
|
+
|
88
94
|
|
89
95
|
(略)
|
90
96
|
|
91
|
-
remote: /tmp/build_
|
97
|
+
remote: /tmp/build_f6256d5c/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.3/lib/active_support/dependencies.rb:291:in `require'
|
92
98
|
|
93
|
-
remote: /tmp/build_
|
99
|
+
remote: /tmp/build_f6256d5c/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.3/lib/rails/application.rb:337:in `require_environment!'
|
94
100
|
|
101
|
+
remote: /tmp/build_f6256d5c/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.3/lib/rails/application.rb:520:in `block in run_tasks_blocks'
|
102
|
+
|
103
|
+
remote: /tmp/build_f6256d5c/vendor/bundle/ruby/2.6.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define'
|
104
|
+
|
95
|
-
remote: Tasks: TOP =>
|
105
|
+
remote: Tasks: TOP => environment
|
96
106
|
|
97
107
|
remote: (See full trace by running task with --trace)
|
98
108
|
|
@@ -110,32 +120,6 @@
|
|
110
120
|
|
111
121
|
remote: ! Push failed
|
112
122
|
|
113
|
-
remote: !
|
114
|
-
|
115
|
-
remote: ! ## Warning - The same version of this code has already been built: 5c422d2db661cdee51c8f7737e4909614f6e3c12
|
116
|
-
|
117
|
-
remote: !
|
118
|
-
|
119
|
-
remote: ! We have detected that you have triggered a build from source code with version 5c422d2db661cdee51c8f7737e4909614f6e3c12
|
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
123
|
remote: Verifying deploy...
|
140
124
|
|
141
125
|
remote:
|
@@ -149,3 +133,15 @@
|
|
149
133
|
! [remote rejected] master -> master (pre-receive hook declined)
|
150
134
|
|
151
135
|
```
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
```
|
142
|
+
|
143
|
+
config/environments/production.rb
|
144
|
+
|
145
|
+
config.assets.js_compressor = :uglifier.new(harmony: true)
|
146
|
+
|
147
|
+
```
|