You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"message": " ⚠ There are multiple modules with names that only differ in casing. │ - <TEST_ROOT>/fixtures/errors/FILE.js │ - used by <TEST_ROOT>/fixtures/errors/case-sensitive.js │ - <TEST_ROOT>/fixtures/errors/file.js │ - used by <TEST_ROOT>/fixtures/errors/case-sensitive.js │ ",
27
-
"moduleTrace": Array [],
28
-
"stack": undefined,
29
-
},
30
-
],
31
-
}
32
-
`);
21
+
Object {
22
+
"errors": Array [],
23
+
"warnings": Array [
24
+
Object {
25
+
"code": "Sensitive Modules Warn",
26
+
"message": " ⚠ There are multiple modules with names that only differ in casing. │ - <TEST_ROOT>/fixtures/errors/FILE.js │ - used by <TEST_ROOT>/fixtures/errors/case-sensitive.js │ - <TEST_ROOT>/fixtures/errors/file.js │ - used by <TEST_ROOT>/fixtures/errors/case-sensitive.js │ ",
Copy file name to clipboardExpand all lines: tests/rspack-test/errorCases/error-library.js
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -11,16 +11,16 @@ module.exports = {
11
11
},
12
12
asynccheck(diagnostics){
13
13
expect(diagnostics).toMatchInlineSnapshot(`
14
-
Object {
15
-
"errors": Array [
16
-
Object {
17
-
"code": "GenericFailure",
18
-
"message": " × caused by plugins in Compilation.hooks.additionalChunkRuntimeRequirements ╰─▶ × Library name must be a string or string array. Common configuration options that specific library names are 'output.library[.name]', 'entry.xyz.library[.name]', 'ModuleFederationPlugin.name' and 'ModuleFederationPlugin.library[.name]'. ",
19
-
"stack": "Error: × caused by plugins in Compilation.hooks.additionalChunkRuntimeRequirements ╰─▶ × Library name must be a string or string array. Common configuration options that specific library names are 'output.library[.name]', 'entry.xyz.library[.name]', 'ModuleFederationPlugin.name' and 'ModuleFederationPlugin.library[.name]'. ",
20
-
},
21
-
],
22
-
"warnings": Array [],
23
-
}
24
-
`);
14
+
Object {
15
+
"errors": Array [
16
+
Object {
17
+
"code": "GenericFailure",
18
+
"message": " × caused by plugins in Compilation.hooks.additionalChunkRuntimeRequirements ╰─▶ × Library name must be a string or string array. Common configuration options that specific library names are 'output.library[.name]', 'entry.xyz.library[.name]', 'ModuleFederationPlugin.name' and 'ModuleFederationPlugin.library[.name]'. ",
19
+
"stack": "Error: × caused by plugins in Compilation.hooks.additionalChunkRuntimeRequirements ╰─▶ × Library name must be a string or string array. Common configuration options that specific library names are 'output.library[.name]', 'entry.xyz.library[.name]', 'ModuleFederationPlugin.name' and 'ModuleFederationPlugin.library[.name]'. ",
0 commit comments