質問編集履歴
3
エラー文変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,51 +7,26 @@
|
|
7
7
|
> vaio@1.0.0 webpack C:\Users\VAIO
|
8
8
|
> webpack 'src/{**/,*/}*.ts'
|
9
9
|
|
10
|
-
C:\Users\VAIO\webpack.config.js:26
|
11
|
-
});
|
12
|
-
^
|
13
10
|
|
14
|
-
|
11
|
+
Insufficient number of arguments or no entry found.
|
15
|
-
at new Script (vm.js:88:7)
|
16
|
-
at NativeCompileCache._moduleCompile (C:\Users\VAIO\node_modules\v8-compile-cache\v8-compile-cache.js:240:18)
|
17
|
-
at Module._compile (C:\Users\VAIO\node_modules\v8-compile-cache\v8-compile-cache.js:186:36)
|
18
|
-
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
|
19
|
-
at Module.load (internal/modules/cjs/loader.js:977:32)
|
20
|
-
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
|
21
|
-
at Module.require (internal/modules/cjs/loader.js:1019:19)
|
22
|
-
at require (C:\Users\VAIO\node_modules\v8-compile-cache\v8-compile-cache.js:161:20)
|
23
|
-
at WEBPACK_OPTIONS (C:\Users\VAIO\node_modules\webpack-cli\bin\utils\convert-argv.js:114:13)
|
24
|
-
at requireConfig (C:\Users\VAIO\node_modules\webpack-cli\bin\utils\convert-argv.js:116:6)
|
25
|
-
at C:\Users\VAIO\node_modules\webpack-cli\bin\utils\convert-argv.js:123:17
|
26
|
-
at Array.forEach (<anonymous>)
|
27
|
-
at module.exports (C:\Users\VAIO\node_modules\webpack-cli\bin\utils\convert-argv.js:121:15)
|
28
|
-
at C:\Users\VAIO\node_modules\webpack-cli\bin\cli.js:71:45
|
29
|
-
at Object.parse (C:\Users\VAIO\node_modules\yargs\yargs.js:567:18)
|
30
|
-
at C:\Users\VAIO\node_modules\webpack-cli\bin\cli.js:49:8
|
31
|
-
at Object.<anonymous> (C:\Users\VAIO\node_modules\webpack-cli\bin\cli.js:366:3)
|
32
|
-
at Module._compile (internal/modules/cjs/loader.js:1133:30)
|
33
|
-
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
|
34
|
-
at Module.load (internal/modules/cjs/loader.js:977:32)
|
35
|
-
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
|
36
|
-
at Module.require (internal/modules/cjs/loader.js:1019:19)
|
37
|
-
|
12
|
+
Alternatively, run 'webpack(-cli) --help' for usage info.
|
13
|
+
|
14
|
+
Hash: d073a1f0213226452660
|
38
|
-
|
15
|
+
Version: webpack 4.43.0
|
16
|
+
Time: 91ms
|
39
|
-
|
17
|
+
Built at: 2020-06-10 0:04:05
|
18
|
+
|
40
|
-
|
19
|
+
ERROR in Entry module not found: Error: Can't resolve ''src/{**/,*/}*.ts'' in 'C:\Users\VAIO'
|
41
|
-
at Module.load (internal/modules/cjs/loader.js:977:32)
|
42
|
-
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
|
43
|
-
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
|
44
|
-
at internal/main/run_main_module.js:18:47
|
45
20
|
npm ERR! code ELIFECYCLE
|
46
|
-
npm ERR! errno
|
21
|
+
npm ERR! errno 2
|
47
22
|
npm ERR! vaio@1.0.0 webpack: `webpack 'src/{**/,*/}*.ts'`
|
48
|
-
npm ERR! Exit status
|
23
|
+
npm ERR! Exit status 2
|
49
24
|
npm ERR!
|
50
25
|
npm ERR! Failed at the vaio@1.0.0 webpack script.
|
51
26
|
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
|
52
27
|
|
53
28
|
npm ERR! A complete log of this run can be found in:
|
54
|
-
npm ERR! C:\Users\VAIO\AppData\Roaming\npm-cache\_logs\2020-06-
|
29
|
+
npm ERR! C:\Users\VAIO\AppData\Roaming\npm-cache\_logs\2020-06-09T15_04_05_612Z-debug.log
|
55
30
|
```
|
56
31
|
とエラーが出る。
|
57
32
|
|
2
webpack.config.jsonの内容の追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -91,4 +91,34 @@
|
|
91
91
|
}
|
92
92
|
}
|
93
93
|
|
94
|
+
```
|
95
|
+
|
96
|
+
webpack.config.json
|
97
|
+
```html
|
98
|
+
const path = require('path');
|
99
|
+
|
100
|
+
module.exports = (env, argv) => {
|
101
|
+
return {
|
102
|
+
mode: 'production',
|
103
|
+
entry: {
|
104
|
+
index: path.join(__dirname, 'index.ts'),
|
105
|
+
},
|
106
|
+
|
107
|
+
output: {
|
108
|
+
path: path.join(__dirname, 'www'),
|
109
|
+
filename: 'test_npm.js',
|
110
|
+
library: 'test_npm',
|
111
|
+
libraryTarget: 'umd'
|
112
|
+
},
|
113
|
+
|
114
|
+
module: {
|
115
|
+
rules: [
|
116
|
+
{
|
117
|
+
test: /.ts$/,
|
118
|
+
use: [{ loader: 'ts-loader' }]
|
119
|
+
}
|
120
|
+
]
|
121
|
+
}
|
122
|
+
}
|
123
|
+
};
|
94
124
|
```
|
1
エラー文の変更をしました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -5,13 +5,13 @@
|
|
5
5
|
|
6
6
|
```html
|
7
7
|
> vaio@1.0.0 webpack C:\Users\VAIO
|
8
|
-
> webpack
|
8
|
+
> webpack 'src/{**/,*/}*.ts'
|
9
9
|
|
10
|
-
C:\Users\VAIO\webpack.config.js:
|
10
|
+
C:\Users\VAIO\webpack.config.js:26
|
11
|
-
|
11
|
+
});
|
12
|
-
^
|
12
|
+
^
|
13
13
|
|
14
|
-
SyntaxError: Unexpected token '
|
14
|
+
SyntaxError: Unexpected token ')'
|
15
15
|
at new Script (vm.js:88:7)
|
16
16
|
at NativeCompileCache._moduleCompile (C:\Users\VAIO\node_modules\v8-compile-cache\v8-compile-cache.js:240:18)
|
17
17
|
at Module._compile (C:\Users\VAIO\node_modules\v8-compile-cache\v8-compile-cache.js:186:36)
|
@@ -44,14 +44,14 @@
|
|
44
44
|
at internal/main/run_main_module.js:18:47
|
45
45
|
npm ERR! code ELIFECYCLE
|
46
46
|
npm ERR! errno 1
|
47
|
-
npm ERR! vaio@1.0.0 webpack: `webpack`
|
47
|
+
npm ERR! vaio@1.0.0 webpack: `webpack 'src/{**/,*/}*.ts'`
|
48
48
|
npm ERR! Exit status 1
|
49
49
|
npm ERR!
|
50
50
|
npm ERR! Failed at the vaio@1.0.0 webpack script.
|
51
51
|
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
|
52
52
|
|
53
53
|
npm ERR! A complete log of this run can be found in:
|
54
|
-
npm ERR! C:\Users\VAIO\AppData\Roaming\npm-cache\_logs\2020-06-
|
54
|
+
npm ERR! C:\Users\VAIO\AppData\Roaming\npm-cache\_logs\2020-06-08T13_21_28_810Z-debug.log
|
55
55
|
```
|
56
56
|
とエラーが出る。
|
57
57
|
|