質問編集履歴
3
エラー文変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,83 +16,33 @@
|
|
16
16
|
|
17
17
|
|
18
18
|
|
19
|
-
C:\Users\VAIO\webpack.config.js:26
|
20
19
|
|
21
|
-
});
|
22
20
|
|
23
|
-
|
21
|
+
Insufficient number of arguments or no entry found.
|
22
|
+
|
23
|
+
Alternatively, run 'webpack(-cli) --help' for usage info.
|
24
24
|
|
25
25
|
|
26
26
|
|
27
|
-
|
27
|
+
Hash: d073a1f0213226452660
|
28
28
|
|
29
|
-
|
29
|
+
Version: webpack 4.43.0
|
30
30
|
|
31
|
-
|
31
|
+
Time: 91ms
|
32
32
|
|
33
|
-
|
33
|
+
Built at: 2020-06-10 0:04:05
|
34
34
|
|
35
|
-
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
|
36
35
|
|
37
|
-
at Module.load (internal/modules/cjs/loader.js:977:32)
|
38
36
|
|
39
|
-
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
|
40
|
-
|
41
|
-
at Module.require (internal/modules/cjs/loader.js:1019:19)
|
42
|
-
|
43
|
-
at require (C:\Users\VAIO\node_modules\v8-compile-cache\v8-compile-cache.js:161:20)
|
44
|
-
|
45
|
-
at WEBPACK_OPTIONS (C:\Users\VAIO\node_modules\webpack-cli\bin\utils\convert-argv.js:114:13)
|
46
|
-
|
47
|
-
at requireConfig (C:\Users\VAIO\node_modules\webpack-cli\bin\utils\convert-argv.js:116:6)
|
48
|
-
|
49
|
-
at C:\Users\VAIO\node_modules\webpack-cli\bin\utils\convert-argv.js:123:17
|
50
|
-
|
51
|
-
at Array.forEach (<anonymous>)
|
52
|
-
|
53
|
-
at module.exports (C:\Users\VAIO\node_modules\webpack-cli\bin\utils\convert-argv.js:121:15)
|
54
|
-
|
55
|
-
at C:\Users\VAIO\node_modules\webpack-cli\bin\cli.js:71:45
|
56
|
-
|
57
|
-
at Object.parse (C:\Users\VAIO\node_modules\yargs\yargs.js:567:18)
|
58
|
-
|
59
|
-
at C:\Users\VAIO\node_modules\webpack-cli\bin\cli.js:49:8
|
60
|
-
|
61
|
-
at Object.<anonymous> (C:\Users\VAIO\node_modules\webpack-cli\bin\cli.js:366:3)
|
62
|
-
|
63
|
-
at Module._compile (internal/modules/cjs/loader.js:1133:30)
|
64
|
-
|
65
|
-
|
37
|
+
ERROR in Entry module not found: Error: Can't resolve ''src/{**/,*/}*.ts'' in 'C:\Users\VAIO'
|
66
|
-
|
67
|
-
at Module.load (internal/modules/cjs/loader.js:977:32)
|
68
|
-
|
69
|
-
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
|
70
|
-
|
71
|
-
at Module.require (internal/modules/cjs/loader.js:1019:19)
|
72
|
-
|
73
|
-
at require (internal/modules/cjs/helpers.js:77:18)
|
74
|
-
|
75
|
-
at Object.<anonymous> (C:\Users\VAIO\node_modules\webpack\bin\webpack.js:156:2)
|
76
|
-
|
77
|
-
at Module._compile (internal/modules/cjs/loader.js:1133:30)
|
78
|
-
|
79
|
-
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
|
80
|
-
|
81
|
-
at Module.load (internal/modules/cjs/loader.js:977:32)
|
82
|
-
|
83
|
-
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
|
84
|
-
|
85
|
-
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
|
86
|
-
|
87
|
-
at internal/main/run_main_module.js:18:47
|
88
38
|
|
89
39
|
npm ERR! code ELIFECYCLE
|
90
40
|
|
91
|
-
npm ERR! errno
|
41
|
+
npm ERR! errno 2
|
92
42
|
|
93
43
|
npm ERR! vaio@1.0.0 webpack: `webpack 'src/{**/,*/}*.ts'`
|
94
44
|
|
95
|
-
npm ERR! Exit status
|
45
|
+
npm ERR! Exit status 2
|
96
46
|
|
97
47
|
npm ERR!
|
98
48
|
|
@@ -104,7 +54,7 @@
|
|
104
54
|
|
105
55
|
npm ERR! A complete log of this run can be found in:
|
106
56
|
|
107
|
-
npm ERR! C:\Users\VAIO\AppData\Roaming\npm-cache\_logs\2020-06-0
|
57
|
+
npm ERR! C:\Users\VAIO\AppData\Roaming\npm-cache\_logs\2020-06-09T15_04_05_612Z-debug.log
|
108
58
|
|
109
59
|
```
|
110
60
|
|
2
webpack.config.jsonの内容の追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -185,3 +185,63 @@
|
|
185
185
|
|
186
186
|
|
187
187
|
```
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
webpack.config.json
|
192
|
+
|
193
|
+
```html
|
194
|
+
|
195
|
+
const path = require('path');
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
module.exports = (env, argv) => {
|
200
|
+
|
201
|
+
return {
|
202
|
+
|
203
|
+
mode: 'production',
|
204
|
+
|
205
|
+
entry: {
|
206
|
+
|
207
|
+
index: path.join(__dirname, 'index.ts'),
|
208
|
+
|
209
|
+
},
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
output: {
|
214
|
+
|
215
|
+
path: path.join(__dirname, 'www'),
|
216
|
+
|
217
|
+
filename: 'test_npm.js',
|
218
|
+
|
219
|
+
library: 'test_npm',
|
220
|
+
|
221
|
+
libraryTarget: 'umd'
|
222
|
+
|
223
|
+
},
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
module: {
|
228
|
+
|
229
|
+
rules: [
|
230
|
+
|
231
|
+
{
|
232
|
+
|
233
|
+
test: /.ts$/,
|
234
|
+
|
235
|
+
use: [{ loader: 'ts-loader' }]
|
236
|
+
|
237
|
+
}
|
238
|
+
|
239
|
+
]
|
240
|
+
|
241
|
+
}
|
242
|
+
|
243
|
+
}
|
244
|
+
|
245
|
+
};
|
246
|
+
|
247
|
+
```
|
1
エラー文の変更をしました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,19 +12,19 @@
|
|
12
12
|
|
13
13
|
> vaio@1.0.0 webpack C:\Users\VAIO
|
14
14
|
|
15
|
-
> webpack
|
15
|
+
> webpack 'src/{**/,*/}*.ts'
|
16
16
|
|
17
17
|
|
18
18
|
|
19
|
-
C:\Users\VAIO\webpack.config.js:
|
19
|
+
C:\Users\VAIO\webpack.config.js:26
|
20
20
|
|
21
|
-
|
21
|
+
});
|
22
22
|
|
23
|
-
^
|
23
|
+
^
|
24
24
|
|
25
25
|
|
26
26
|
|
27
|
-
SyntaxError: Unexpected token '
|
27
|
+
SyntaxError: Unexpected token ')'
|
28
28
|
|
29
29
|
at new Script (vm.js:88:7)
|
30
30
|
|
@@ -90,7 +90,7 @@
|
|
90
90
|
|
91
91
|
npm ERR! errno 1
|
92
92
|
|
93
|
-
npm ERR! vaio@1.0.0 webpack: `webpack`
|
93
|
+
npm ERR! vaio@1.0.0 webpack: `webpack 'src/{**/,*/}*.ts'`
|
94
94
|
|
95
95
|
npm ERR! Exit status 1
|
96
96
|
|
@@ -104,7 +104,7 @@
|
|
104
104
|
|
105
105
|
npm ERR! A complete log of this run can be found in:
|
106
106
|
|
107
|
-
npm ERR! C:\Users\VAIO\AppData\Roaming\npm-cache\_logs\2020-06-08T12_
|
107
|
+
npm ERR! C:\Users\VAIO\AppData\Roaming\npm-cache\_logs\2020-06-08T13_21_28_810Z-debug.log
|
108
108
|
|
109
109
|
```
|
110
110
|
|