質問編集履歴

5

タイトル修正

2018/05/21 16:09

投稿

pekapekatail
pekapekatail

スコア32

test CHANGED
@@ -1 +1 @@
1
- RailsアプリへのVueJS導入に失敗します[bin/webpacker]
1
+ RailsアプリへのVueJS導入ができず困っています、どなたか助けてください[bin/webpacker]
test CHANGED
File without changes

4

webpacker.ymlの情報を追記しました

2018/05/21 16:09

投稿

pekapekatail
pekapekatail

スコア32

test CHANGED
File without changes
test CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
 
10
10
 
11
- なお、gemfileには次のように書いてあります。
11
+ なお、gemfile, "config/webpack/webpacker.yml"にはそれぞれ次のように書いてあります。
12
12
 
13
13
  ```gemfile
14
14
 
@@ -18,6 +18,154 @@
18
18
 
19
19
 
20
20
 
21
+ ```
22
+
23
+ # Note: You must restart bin/webpack-dev-server for changes to take effect
24
+
25
+
26
+
27
+ default: &default
28
+
29
+ source_path: app/javascript
30
+
31
+ source_entry_path: packs
32
+
33
+ public_output_path: packs
34
+
35
+ cache_path: tmp/cache/webpacker
36
+
37
+
38
+
39
+ # Additional paths webpack should lookup modules
40
+
41
+ # ['app/assets', 'engine/foo/app/assets']
42
+
43
+ resolved_paths: []
44
+
45
+
46
+
47
+ # Reload manifest.json on all requests so we reload latest compiled packs
48
+
49
+ cache_manifest: false
50
+
51
+
52
+
53
+ extensions:
54
+
55
+ - .vue
56
+
57
+ - .js
58
+
59
+ - .sass
60
+
61
+ - .scss
62
+
63
+ - .css
64
+
65
+ - .module.sass
66
+
67
+ - .module.scss
68
+
69
+ - .module.css
70
+
71
+ - .png
72
+
73
+ - .svg
74
+
75
+ - .gif
76
+
77
+ - .jpeg
78
+
79
+ - .jpg
80
+
81
+
82
+
83
+ development:
84
+
85
+ <<: *default
86
+
87
+ compile: true
88
+
89
+
90
+
91
+ # Reference: https://webpack.js.org/configuration/dev-server/
92
+
93
+ dev_server:
94
+
95
+ https: false
96
+
97
+ host: localhost
98
+
99
+ port: 3035
100
+
101
+ public: localhost:3035
102
+
103
+ hmr: false
104
+
105
+ # Inline should be set to true if using HMR
106
+
107
+ inline: true
108
+
109
+ overlay: true
110
+
111
+ compress: true
112
+
113
+ disable_host_check: true
114
+
115
+ use_local_ip: false
116
+
117
+ quiet: false
118
+
119
+ headers:
120
+
121
+ 'Access-Control-Allow-Origin': '*'
122
+
123
+ watch_options:
124
+
125
+ ignored: /node_modules/
126
+
127
+
128
+
129
+
130
+
131
+ test:
132
+
133
+ <<: *default
134
+
135
+ compile: true
136
+
137
+
138
+
139
+ # Compile test packs to a separate directory
140
+
141
+ public_output_path: packs-test
142
+
143
+
144
+
145
+ production:
146
+
147
+ <<: *default
148
+
149
+
150
+
151
+ # Production depends on precompilation of packs prior to booting for performance.
152
+
153
+ compile: false
154
+
155
+
156
+
157
+ # Cache manifest.json for performance
158
+
159
+ cache_manifest: true
160
+
161
+ ```
162
+
163
+
164
+
165
+
166
+
167
+
168
+
21
169
  ## エラー内容
22
170
 
23
171
 
@@ -90,7 +238,7 @@
90
238
 
91
239
  ipt&lang=js
92
240
 
93
- Module build failed: ReferenceError: [BABEL] /Users/hogehoge//app/javascript/app.vue: Unknown option: base.omit. C
241
+ Module build failed: ReferenceError: [BABEL] /Users/hogehoge/app/javascript/app.vue: Unknown option: base.omit. C
94
242
 
95
243
  heck out http://babeljs.io/docs/usage/options/ for more information about options.
96
244
 

3

タグを追加

2018/05/21 06:41

投稿

pekapekatail
pekapekatail

スコア32

test CHANGED
File without changes
test CHANGED
File without changes

2

タイトル・本文の修正

2018/05/20 15:46

投稿

pekapekatail
pekapekatail

スコア32

test CHANGED
@@ -1 +1 @@
1
- RailsアプリへのVueJS導入に失敗します[bin/webpacker実行時]
1
+ RailsアプリへのVueJS導入に失敗します[bin/webpacker]
test CHANGED
@@ -175,3 +175,9 @@
175
175
  + 1 hidden module
176
176
 
177
177
  ```
178
+
179
+
180
+
181
+ 何か心当たりがある方、解決方法をご存知の方、是非とも教えてください。
182
+
183
+ よろしくお願いいたします。

1

タイトルを修正しました

2018/05/20 15:43

投稿

pekapekatail
pekapekatail

スコア32

test CHANGED
@@ -1 +1 @@
1
- RailsアプリへのVue導入に失敗します[bin/webpacker実行時]
1
+ RailsアプリへのVueJS導入に失敗します[bin/webpacker実行時]
test CHANGED
File without changes