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

質問編集履歴

3

修正

2020/09/03 21:11

投稿

tomsuma
tomsuma

スコア38

title CHANGED
File without changes
body CHANGED
@@ -23,7 +23,6 @@
23
23
 
24
24
  ```
25
25
  webpacker.yml
26
-
27
26
  # Note: You must restart bin/webpack-dev-server for changes to take effect
28
27
 
29
28
  default: &default
@@ -32,7 +31,7 @@
32
31
  public_root_path: public
33
32
  public_output_path: packs
34
33
  cache_path: tmp/cache/webpacker
35
- check_yarn_integrity: false  エラー原因
34
+ check_yarn_integrity: false
36
35
  webpack_compile_output: true
37
36
 
38
37
  # Additional paths webpack should lookup modules
@@ -79,7 +78,7 @@
79
78
  compile: true
80
79
 
81
80
  # Verifies that correct packages and versions are installed by inspecting package.json, yarn.lock, and node_modules
82
- check_yarn_integrity: true
81
+ check_yarn_integrity: false
83
82
 
84
83
  # Reference: https://webpack.js.org/configuration/dev-server/
85
84
  dev_server:
@@ -121,6 +120,7 @@
121
120
  # Cache manifest.json for performance
122
121
  cache_manifest: true
123
122
 
123
+
124
124
  ```
125
125
  docker-compose upを打つと起こるエラー
126
126
 

2

修正

2020/09/03 21:11

投稿

tomsuma
tomsuma

スコア38

title CHANGED
@@ -1,1 +1,1 @@
1
- Dockerにてwebpackerエラー
1
+ check_yarn_integrityをfalseエラーが消えない
body CHANGED
@@ -2,12 +2,8 @@
2
2
 
3
3
  ruby on rails既存アプリをdocker環境でも使いたいのですが
4
4
 
5
- docker-compose exec web bundle exec rake db:create
5
+ docker-compose upを打つとエラーが起こります
6
- コマンドを打つと
6
+
7
- このようなエラーが出て詰まってます。
8
- ```
9
- ERROR: No container found for web_1
10
- ```
11
7
  試したこと
12
8
  yarn update
13
9
 
@@ -21,8 +17,10 @@
21
17
  to `false` in your webpacker config file (config/webpacker.yml)
22
18
  ```
23
19
 
24
- docker-compose upを打つと起こるエラー
25
20
 
21
+
22
+
23
+
26
24
  ```
27
25
  webpacker.yml
28
26
 
@@ -124,6 +122,7 @@
124
122
  cache_manifest: true
125
123
 
126
124
  ```
125
+ docker-compose upを打つと起こるエラー
127
126
 
128
127
  ```
129
128
  web_1 | => Booting Puma
@@ -147,4 +146,27 @@
147
146
  web_1 |
148
147
  web_1 | Exiting
149
148
  books_web_1 exited with code 1
150
- ```
149
+ ```
150
+
151
+ また同じく
152
+ docker-compose run web bundle exec rake db:migrate
153
+ docker-compose run web bundle exec rake db:create
154
+ コマンドでも
155
+
156
+ ```
157
+ Starting books_db_1 ... done
158
+ Creating books_web_run ... done
159
+ sh: 1: yarn: not found
160
+
161
+
162
+ ========================================
163
+ Your Yarn packages are out of date!
164
+ Please run `yarn install --check-files` to update.
165
+ ========================================
166
+
167
+
168
+ To disable this check, please change `check_yarn_integrity`
169
+ to `false` in your webpacker config file (config/webpacker.yml).
170
+
171
+ ```
172
+ と出ます

1

修正

2020/09/03 12:57

投稿

tomsuma
tomsuma

スコア38

title CHANGED
File without changes
body CHANGED
@@ -2,11 +2,13 @@
2
2
 
3
3
  ruby on rails既存アプリをdocker環境でも使いたいのですが
4
4
 
5
- docker-compose up
5
+ docker-compose exec web bundle exec rake db:create
6
6
  コマンドを打つと
7
7
  このようなエラーが出て詰まってます。
8
-
8
+ ```
9
-
9
+ ERROR: No container found for web_1
10
+ ```
11
+ 試したこと
10
12
  yarn update
11
13
 
12
14
  `check_yarn_integrityがfalseかを確認したり
@@ -19,8 +21,8 @@
19
21
  to `false` in your webpacker config file (config/webpacker.yml)
20
22
  ```
21
23
 
24
+ docker-compose upを打つと起こるエラー
22
25
 
23
-
24
26
  ```
25
27
  webpacker.yml
26
28