質問編集履歴
2
エラーを更新
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,29 +4,53 @@
|
|
4
4
|
|
5
5
|
```
|
6
6
|
|
7
|
-
yarn install v1.22.17
|
8
|
-
|
9
|
-
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
|
10
|
-
|
11
|
-
[1/4] Resolving packages...
|
12
|
-
|
13
|
-
error Your lockfile needs to be updated, but yarn was run with `--frozen-lockfile`.
|
14
|
-
|
15
|
-
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
|
16
|
-
|
17
7
|
Compiling...
|
18
8
|
|
19
9
|
Compilation failed:
|
20
10
|
|
21
|
-
|
11
|
+
[webpack-cli] Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
|
22
12
|
|
13
|
+
- configuration.node should be one of these:
|
14
|
+
|
15
|
+
false | object { __dirname?, __filename?, global? }
|
16
|
+
|
17
|
+
-> Include polyfills or mocks for various node stuff.
|
18
|
+
|
19
|
+
Details:
|
20
|
+
|
21
|
+
* configuration.node has an unknown property 'dgram'. These properties are valid:
|
22
|
+
|
23
|
+
object { __dirname?, __filename?, global? }
|
24
|
+
|
25
|
+
-> Options object for node compatibility features.
|
26
|
+
|
27
|
+
* configuration.node has an unknown property 'fs'. These properties are valid:
|
28
|
+
|
29
|
+
object { __dirname?, __filename?, global? }
|
30
|
+
|
31
|
+
-> Options object for node compatibility features.
|
32
|
+
|
33
|
+
* configuration.node has an unknown property 'net'. These properties are valid:
|
34
|
+
|
35
|
+
object { __dirname?, __filename?, global? }
|
36
|
+
|
37
|
+
-> Options object for node compatibility features.
|
38
|
+
|
39
|
+
* configuration.node has an unknown property 'tls'. These properties are valid:
|
40
|
+
|
41
|
+
object { __dirname?, __filename?, global? }
|
42
|
+
|
43
|
+
-> Options object for node compatibility features.
|
44
|
+
|
23
|
-
|
45
|
+
* configuration.node has an unknown property 'child_process'. These properties are valid:
|
46
|
+
|
47
|
+
object { __dirname?, __filename?, global? }
|
48
|
+
|
49
|
+
-> Options object for node compatibility features.
|
24
50
|
|
25
51
|
|
26
52
|
|
27
53
|
|
28
|
-
|
29
|
-
error Command "webpack" not found.
|
30
54
|
|
31
55
|
```
|
32
56
|
|
1
package.jsonを追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -32,6 +32,88 @@
|
|
32
32
|
|
33
33
|
|
34
34
|
|
35
|
+
``` package.json
|
36
|
+
|
37
|
+
{
|
38
|
+
|
39
|
+
"name": "attendance-app",
|
40
|
+
|
41
|
+
"private": true,
|
42
|
+
|
43
|
+
"dependencies": {
|
44
|
+
|
45
|
+
"@rails/actioncable": "^6.0.0",
|
46
|
+
|
47
|
+
"@rails/activestorage": "^6.0.0",
|
48
|
+
|
49
|
+
"@rails/ujs": "^6.0.0",
|
50
|
+
|
51
|
+
"@rails/webpacker": "5.4.3",
|
52
|
+
|
53
|
+
"turbolinks": "^5.2.0",
|
54
|
+
|
55
|
+
"webpack": "^5.65.0",
|
56
|
+
|
57
|
+
"webpack-cli": "^4.9.1"
|
58
|
+
|
59
|
+
},
|
60
|
+
|
61
|
+
"version": "0.1.0",
|
62
|
+
|
63
|
+
"devDependencies": {
|
64
|
+
|
65
|
+
"webpack-dev-server": "3"
|
66
|
+
|
67
|
+
},
|
68
|
+
|
69
|
+
"description": "This README would normally document whatever steps are necessary to get the application up and running.",
|
70
|
+
|
71
|
+
"main": "babel.config.js",
|
72
|
+
|
73
|
+
"directories": {
|
74
|
+
|
75
|
+
"lib": "lib",
|
76
|
+
|
77
|
+
"test": "test"
|
78
|
+
|
79
|
+
},
|
80
|
+
|
81
|
+
"scripts": {
|
82
|
+
|
83
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
84
|
+
|
85
|
+
},
|
86
|
+
|
87
|
+
"repository": {
|
88
|
+
|
89
|
+
"type": "git",
|
90
|
+
|
91
|
+
"url": "git+https://github.com/Kyoya-prog/attendance-app.git"
|
92
|
+
|
93
|
+
},
|
94
|
+
|
95
|
+
"keywords": [],
|
96
|
+
|
97
|
+
"author": "",
|
98
|
+
|
99
|
+
"license": "ISC",
|
100
|
+
|
101
|
+
"bugs": {
|
102
|
+
|
103
|
+
"url": "https://github.com/Kyoya-prog/attendance-app/issues"
|
104
|
+
|
105
|
+
},
|
106
|
+
|
107
|
+
"homepage": "https://github.com/Kyoya-prog/attendance-app#readme"
|
108
|
+
|
109
|
+
}
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
```
|
114
|
+
|
115
|
+
|
116
|
+
|
35
117
|
ネットでも色々探しましたが、良さそうな解決策が見つかりませんでした。
|
36
118
|
|
37
119
|
解決策をご存知の方がいればご教授お願いいたします。
|