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
Copy file name to clipboardExpand all lines: src/utils/error.ts
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -259,7 +259,8 @@ export function errorCyclicCrossChunkReexport(
259
259
exportName: string,
260
260
exporter: string,
261
261
reexporter: string,
262
-
importer: string
262
+
importer: string,
263
+
preserveModules: boolean
263
264
): RollupLog{
264
265
return{
265
266
code: CYCLIC_CROSS_CHUNK_REEXPORT,
@@ -271,7 +272,9 @@ export function errorCyclicCrossChunkReexport(
271
272
reexporter
272
273
)}" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.\nEither change the import in "${relativeId(
273
274
importer
274
-
)}" to point directly to the exporting module or do not use "preserveModules" to ensure these modules end up in the same chunk.`,
275
+
)}" to point directly to the exporting module or ${
276
+
preserveModules ? 'do not use "output.preserveModules"' : 'reconfigure "output.manualChunks"'
277
+
} to ensure these modules end up in the same chunk.`,
'Export "exists4" of module "dep1.js" was reexported through module "dep2.js" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.\nEither change the import in "main.js" to point directly to the exporting module or reconfigure "output.manualChunks" to ensure these modules end up in the same chunk.',
'Export "LANGUAGES" of module "types.js" was reexported through module "index.js" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.\nEither change the import in "formatters.js" to point directly to the exporting module or reconfigure "output.manualChunks" to ensure these modules end up in the same chunk.',
35
+
reexporter: ID_INDEX
36
+
},
37
+
{
38
+
code: 'CYCLIC_CROSS_CHUNK_REEXPORT',
39
+
exporter: ID_FORMATTERS,
40
+
id: ID_MAIN,
41
+
message:
42
+
'Export "*" of module "formatters.js" was reexported through module "index.js" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.\nEither change the import in "main.js" to point directly to the exporting module or reconfigure "output.manualChunks" to ensure these modules end up in the same chunk.',
43
+
reexporter: ID_INDEX
44
+
},
45
+
{
46
+
code: 'CYCLIC_CROSS_CHUNK_REEXPORT',
47
+
exporter: ID_FORMATTERS,
48
+
id: ID_MAIN,
49
+
message:
50
+
'Export "*" of module "formatters.js" was reexported through module "index.js" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.\nEither change the import in "main.js" to point directly to the exporting module or reconfigure "output.manualChunks" to ensure these modules end up in the same chunk.',
51
+
reexporter: ID_INDEX
52
+
},
53
+
{
54
+
code: 'CYCLIC_CROSS_CHUNK_REEXPORT',
55
+
exporter: ID_FORMATTERS,
56
+
id: ID_TYPES,
57
+
message:
58
+
'Export "*" of module "formatters.js" was reexported through module "index.js" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.\nEither change the import in "types.js" to point directly to the exporting module or reconfigure "output.manualChunks" to ensure these modules end up in the same chunk.',
'Export "*" of module "formatters.js" was reexported through module "index.js" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.\nEither change the import in "main.js" to point directly to the exporting module or do not use "output.preserveModules" to ensure these modules end up in the same chunk.',
33
+
reexporter: ID_INDEX
34
+
},
35
+
{
36
+
code: 'CYCLIC_CROSS_CHUNK_REEXPORT',
37
+
exporter: ID_FORMATTERS,
38
+
id: ID_MAIN,
39
+
message:
40
+
'Export "*" of module "formatters.js" was reexported through module "index.js" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.\nEither change the import in "main.js" to point directly to the exporting module or do not use "output.preserveModules" to ensure these modules end up in the same chunk.',
41
+
reexporter: ID_INDEX
42
+
},
43
+
{
44
+
code: 'CYCLIC_CROSS_CHUNK_REEXPORT',
45
+
exporter: ID_FORMATTERS,
46
+
id: ID_TYPES,
47
+
message:
48
+
'Export "*" of module "formatters.js" was reexported through module "index.js" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.\nEither change the import in "types.js" to point directly to the exporting module or do not use "output.preserveModules" to ensure these modules end up in the same chunk.',
49
+
reexporter: ID_INDEX
50
+
},
51
+
{
52
+
code: 'CYCLIC_CROSS_CHUNK_REEXPORT',
53
+
exporter: ID_TYPES,
54
+
id: ID_FORMATTERS,
55
+
message:
56
+
'Export "LANGUAGES" of module "types.js" was reexported through module "index.js" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.\nEither change the import in "formatters.js" to point directly to the exporting module or do not use "output.preserveModules" to ensure these modules end up in the same chunk.',
0 commit comments