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

質問編集履歴

4

rrrrrr

2020/11/27 08:21

投稿

Meitoku
Meitoku

スコア44

title CHANGED
File without changes
body CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  ```
26
26
  node -v
27
- v15.2.1
27
+ v13.2.0
28
28
 
29
29
  yarn -v
30
30
  1.22.10

3

f

2020/11/27 08:20

投稿

Meitoku
Meitoku

スコア44

title CHANGED
File without changes
body CHANGED
@@ -274,6 +274,29 @@
274
274
  ```
275
275
  bin/webpack
276
276
  ```
277
+ Hash: 0b1c0a20c88060441749
278
+ Version: webpack 4.44.2
279
+ Time: 3361ms
280
+ Built at: 2020/11/24 0:39:31
281
+ Asset Size Chunks Chunk Names
282
+ js/application-4f62ea677992947f725b.js 4.83 KiB application [emitted] [immutable] application
283
+ js/application-4f62ea677992947f725b.js.map 4.64 KiB application [emitted] [dev] application
284
+ js/hello_vue-3eaaef18acbc2a0c9f27.js 3.26 MiB hello_vue [emitted] [immutable] hello_vue
285
+ js/hello_vue-3eaaef18acbc2a0c9f27.js.map 3.64 MiB hello_vue [emitted] [dev] hello_vue
286
+ js/top-443a173b319580692cec.js 3.9 KiB top [emitted] [immutable] top
287
+ js/top-443a173b319580692cec.js.map 3.64 KiB top [emitted] [dev] top
288
+ manifest.json 972 bytes [emitted]
289
+ Entrypoint application = js/application-4f62ea677992947f725b.js js/application-4f62ea677992947f725b.js.map
290
+ Entrypoint hello_vue = js/hello_vue-3eaaef18acbc2a0c9f27.js js/hello_vue-3eaaef18acbc2a0c9f27.js.map
291
+ Entrypoint top = js/top-443a173b319580692cec.js js/top-443a173b319580692cec.js.map
292
+ [./app/javascript/app.vue] 339 bytes {hello_vue} [built] [failed] [1 error]
293
+ [./app/javascript/packs/application.js] 957 bytes {application} [built]
294
+ [./app/javascript/packs/hello_vue.js] 2.02 KiB {hello_vue} [built]
295
+ [./app/javascript/packs/top.js] 56 bytes {top} [built]
296
+ [./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 905 bytes {hello_vue} [built]
297
+ [./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 552 bytes {hello_vue} [built]
298
+ + 9 hidden modules
299
+
277
300
  ERROR in ./app/javascript/app.vue 1:0
278
301
  Module parse failed: Unexpected token (1:0)
279
302
  You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
@@ -281,4 +304,5 @@
281
304
  | <v-app id="app"> <!-- 追加 -->
282
305
  | <v-btn>Vuetifyのボタン</v-btn> <!-- 追加 -->
283
306
  @ ./app/javascript/packs/hello_vue.js 10:0-29 17:15-18
307
+
284
308
  ```

2

っっっっr

2020/11/23 15:46

投稿

Meitoku
Meitoku

スコア44

title CHANGED
File without changes
body CHANGED
@@ -271,4 +271,14 @@
271
271
  },
272
272
  "homepage": "https://github.com/katou02/baseball-app#readme"
273
273
  }
274
+ ```
275
+ bin/webpack
276
+ ```
277
+ ERROR in ./app/javascript/app.vue 1:0
278
+ Module parse failed: Unexpected token (1:0)
279
+ You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
280
+ > <template>
281
+ | <v-app id="app"> <!-- 追加 -->
282
+ | <v-btn>Vuetifyのボタン</v-btn> <!-- 追加 -->
283
+ @ ./app/javascript/packs/hello_vue.js 10:0-29 17:15-18
274
284
  ```

1

h

2020/11/23 15:43

投稿

Meitoku
Meitoku

スコア44

title CHANGED
File without changes
body CHANGED
@@ -19,6 +19,7 @@
19
19
  ```
20
20
  webpackはインストールしてますがなぜ起きるのでしょうか?
21
21
  [こちら](https://qiita.com/ryokkkke/items/5cfbf91fc3e3a3831da6)や[こちら](https://stackoverflow.com/questions/58065428/vanilla-rails-6-0-error-command-webpack-not-found)など色々試してますがうまくいきません
22
+ どのような理由が考えられますでしょうか
22
23
  ご教授お願いします
23
24
 
24
25
  ```