mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-27 01:22:49 +00:00
34 lines
1.9 KiB
JavaScript
34 lines
1.9 KiB
JavaScript
import { BUILD_001, BUILD_002, RUNTIME_001, RUNTIME_002, RUNTIME_003, RUNTIME_004, RUNTIME_005, RUNTIME_006, RUNTIME_007, RUNTIME_008, RUNTIME_009, RUNTIME_010, RUNTIME_011, RUNTIME_012, RUNTIME_013, RUNTIME_014, RUNTIME_015, TYPE_001 } from "./error-codes.mjs";
|
|
|
|
//#region src/desc.ts
|
|
const runtimeDescMap = {
|
|
[RUNTIME_001]: "Failed to get remoteEntry exports.",
|
|
[RUNTIME_002]: "The remote entry interface does not contain \"init\"",
|
|
[RUNTIME_003]: "Failed to get manifest.",
|
|
[RUNTIME_004]: "Failed to locate remote.",
|
|
[RUNTIME_005]: "Invalid loadShareSync function call from bundler runtime",
|
|
[RUNTIME_006]: "Invalid loadShareSync function call from runtime",
|
|
[RUNTIME_007]: "Failed to get remote snapshot.",
|
|
[RUNTIME_008]: "Failed to load script resources.",
|
|
[RUNTIME_009]: "Please call createInstance first.",
|
|
[RUNTIME_010]: "The name option cannot be changed after initialization. If you want to create a new instance with a different name, please use \"createInstance\" api.",
|
|
[RUNTIME_011]: "The remoteEntry URL is missing from the remote snapshot.",
|
|
[RUNTIME_012]: "The getter for the shared module is not a function. This may be caused by setting \"shared.import: false\" without the host providing the corresponding lib.",
|
|
[RUNTIME_013]: "The manifest is not a valid Module Federation manifest.",
|
|
[RUNTIME_014]: "The remote does not expose the requested module.",
|
|
[RUNTIME_015]: "Remote container initialization failed."
|
|
};
|
|
const typeDescMap = { [TYPE_001]: "Failed to generate type declaration. Execute the below cmd to reproduce and fix the error." };
|
|
const buildDescMap = {
|
|
[BUILD_001]: "Failed to find expose module.",
|
|
[BUILD_002]: "PublicPath is required in prod mode."
|
|
};
|
|
const errorDescMap = {
|
|
...runtimeDescMap,
|
|
...typeDescMap,
|
|
...buildDescMap
|
|
};
|
|
|
|
//#endregion
|
|
export { buildDescMap, errorDescMap, runtimeDescMap, typeDescMap };
|
|
//# sourceMappingURL=desc.mjs.map
|