teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

補足

2021/07/16 16:24

投稿

mansan
mansan

スコア11

title CHANGED
File without changes
body CHANGED
@@ -135,4 +135,32 @@
135
135
 
136
136
  ### 補足情報(FW/ツールのバージョンなど)
137
137
 
138
+ bundle exec rails webpacker:install 実行時のログに気になるエラーがありました。
139
+
140
+ ```bash
141
+ [3/4] Linking dependencies...
142
+ warning " > webpack-dev-server@3.11.2" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
143
+ warning "webpack-dev-server > webpack-dev-middleware@3.7.3" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
144
+ [4/4] Building fresh packages...
138
- ここにより詳細な情報を記載してください。
145
+ [-/3] ⠐ waiting...
146
+ [-/3] ⠈ waiting...
147
+ error /opt/render/project/src/node_modules/node-sass: Command failed.
148
+ Exit code: 137
149
+ Command: node scripts/install.js
150
+ Arguments:
151
+ Directory: /opt/render/project/src/node_modules/node-sass
152
+ Output:
153
+ ```
154
+
155
+ 続けて、bundle exec rails webpacker:compileを実行した際のエラーになります。
156
+ ```bash
157
+ ERROR in ./app/javascript/scss/application.scss
158
+ Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
159
+ ModuleBuildError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
160
+ Error: Missing binding /opt/render/project/src/node_modules/node-sass/vendor/linux-x64-83/binding.node
161
+ Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 14.x
162
+
163
+
164
+ This usually happens because your environment has changed since running `npm install`.
165
+ Run `npm rebuild node-sass` to download the binding for your current environment.
166
+ ```