-
Notifications
You must be signed in to change notification settings - Fork 14
Closed
Description
I am getting the following error after updating from esrap 1.4.5 to 1.4.6:
$ npm run build
> thymis-frontend@0.5.0-dev build
> vite build
SvelteKit reloading version: dd2d792f89cbe19d6b25af3c4f3ed87af5018c30-dirty-1743934782760
vite v6.2.5 building SSR bundle for production...
✓ 91 modules transformed.
✗ Build failed in 1.22s
error during build:
src/lib/components/secrets/SecretEditModal.svelte (53:6): Unexpected token `;`. Expected ... , *, (, [, :, , ?, = or an identifier (Note that you need plugins to import files that are not JavaScript)
file: /home/nixos/thymis/frontend/src/lib/components/secrets/SecretEditModal.svelte:53:6
51:
52: const dispatch = createEventDispatcher<{
53: close: void;
^
54: saved: { id: string; display_name: string };
55: download: void;
at getRollupError (file:///home/nixos/thymis/frontend/node_modules/rollup/dist/es/shared/parseAst.js:397:41)
at ParseError.initialise (file:///home/nixos/thymis/frontend/node_modules/rollup/dist/es/shared/node-entry.js:14219:28)
at convertNode (file:///home/nixos/thymis/frontend/node_modules/rollup/dist/es/shared/node-entry.js:16113:10)
at convertProgram (file:///home/nixos/thymis/frontend/node_modules/rollup/dist/es/shared/node-entry.js:15356:12)
at Module.setSource (file:///home/nixos/thymis/frontend/node_modules/rollup/dist/es/shared/node-entry.js:17101:24)
at async ModuleLoader.addModuleSource (file:///home/nixos/thymis/frontend/node_modules/rollup/dist/es/shared/node-entry.js:21045:13)
Here is the source code (https://github.com/Thymis-io/thymis/blob/master/frontend/src/lib/components/secrets/SecretEditModal.svelte#L52-L60)
const dispatch = createEventDispatcher<{
close: void;
saved: { id: string; display_name: string };
download: void;
fileChange: Event;
addEnvVariable: void;
removeEnvVariable: number;
error: string;
}>();Metadata
Metadata
Assignees
Labels
No labels