Closed shinokada closed 1 year ago
I updated sveltekit 1.0.1 but it returns the same errors using"flowbite-svelte": "^0.29.0"
.
I tried yarn, but it returns the same errors.
Vercel deployment failed.
[vite:esbuild-transpile] Transform failed with 8 errors:
--
20:32:01.160 | _app/immutable/chunks/Frame-!~{02x}~.js:522:10: ERROR: The symbol "mouseenter_handler" has already been declared
20:32:01.160 | _app/immutable/chunks/Frame-!~{02x}~.js:526:10: ERROR: The symbol "mouseleave_handler" has already been declared
20:32:01.160 | _app/immutable/chunks/Frame-!~{02x}~.js:530:10: ERROR: The symbol "focusin_handler" has already been declared
20:32:01.160 | _app/immutable/chunks/Frame-!~{02x}~.js:534:10: ERROR: The symbol "focusout_handler" has already been declared
20:32:01.161 | _app/immutable/chunks/Frame-!~{02x}~.js:554:10: ERROR: The symbol "mouseenter_handler_1" has already been declared
20:32:01.161 | ...
20:32:01.161 |
20:32:01.161 | The symbol "mouseenter_handler" has already been declared
20:32:01.161 | 520\| }
20:32:01.161 | 521\|
20:32:01.161 | 522\| function mouseenter_handler(event) {
20:32:01.162 | \| ^
20:32:01.162 | 523\| bubble.call(this, $self, event);
20:32:01.162 | 524\| }
20:32:01.162 |
20:32:01.162 | The symbol "mouseleave_handler" has already been declared
20:32:01.162 | 524\| }
20:32:01.162 | 525\|
20:32:01.162 | 526\| function mouseleave_handler(event) {
20:32:01.162 | \| ^
20:32:01.163 | 527\| bubble.call(this, $self, event);
20:32:01.163 | 528\| }
20:32:01.163 |
20:32:01.163 | The symbol "focusin_handler" has already been declared
20:32:01.163 | 528\| }
20:32:01.163 | 529\|
20:32:01.163 | 530\| function focusin_handler(event) {
20:32:01.165 | \| ^
20:32:01.165 | 531\| bubble.call(this, $self, event);
20:32:01.165 | 532\| }
20:32:01.165 |
20:32:01.166 | The symbol "focusout_handler" has already been declared
20:32:01.166 | 532\| }
20:32:01.166 | 533\|
20:32:01.166 | 534\| function focusout_handler(event) {
20:32:01.166 | \| ^
20:32:01.166 | 535\| bubble.call(this, $self, event);
20:32:01.167 | 536\| }
20:32:01.167 |
20:32:01.167 | The symbol "mouseenter_handler_1" has already been declared
20:32:01.167 | 552\| }
20:32:01.167 | 553\|
20:32:01.167 | 554\| function mouseenter_handler_1(event) {
20:32:01.167 | \| ^
20:32:01.168 | 555\| bubble.call(this, $self, event);
20:32:01.168 | 556\| }
20:32:01.168 |
20:32:01.168 | The symbol "mouseleave_handler_1" has already been declared
20:32:01.168 | 556\| }
20:32:01.168 | 557\|
20:32:01.168 | 558\| function mouseleave_handler_1(event) {
20:32:01.168 | \| ^
20:32:01.168 | 559\| bubble.call(this, $self, event);
20:32:01.169 | 560\| }
20:32:01.169 |
20:32:01.169 | The symbol "focusin_handler_1" has already been declared
20:32:01.169 | 560\| }
20:32:01.169 | 561\|
20:32:01.170 | 562\| function focusin_handler_1(event) {
20:32:01.170 | \| ^
20:32:01.171 | 563\| bubble.call(this, $self, event);
20:32:01.171 | 564\| }
20:32:01.171 |
20:32:01.171 | The symbol "focusout_handler_1" has already been declared
20:32:01.171 | 564\| }
20:32:01.171 | 565\|
20:32:01.171 | 566\| function focusout_handler_1(event) {
20:32:01.172 | \| ^
20:32:01.172 | 567\| bubble.call(this, $self, event);
20:32:01.172 | 568\| }
20:32:01.172 |
20:32:01.173 | error during build:
20:32:01.173 | Error: Transform failed with 8 errors:
20:32:01.173 | _app/immutable/chunks/Frame-!~{02x}~.js:522:10: ERROR: The symbol "mouseenter_handler" has already been declared
20:32:01.174 | _app/immutable/chunks/Frame-!~{02x}~.js:526:10: ERROR: The symbol "mouseleave_handler" has already been declared
20:32:01.174 | _app/immutable/chunks/Frame-!~{02x}~.js:530:10: ERROR: The symbol "focusin_handler" has already been declared
20:32:01.174 | _app/immutable/chunks/Frame-!~{02x}~.js:534:10: ERROR: The symbol "focusout_handler" has already been declared
20:32:01.174 | _app/immutable/chunks/Frame-!~{02x}~.js:554:10: ERROR: The symbol "mouseenter_handler_1" has already been declared
20:32:01.174 | ...
20:32:01.175 | at failureErrorWithLog (/vercel/path0/node_modules/.pnpm/esbuild@0.16.9/node_modules/esbuild/lib/main.js:1594:15)
20:32:01.175 | at /vercel/path0/node_modules/.pnpm/esbuild@0.16.9/node_modules/esbuild/lib/main.js:831:29
20:32:01.175 | at responseCallbacks.<computed> (/vercel/path0/node_modules/.pnpm/esbuild@0.16.9/node_modules/esbuild/lib/main.js:697:9)
20:32:01.175 | at handleIncomingPacket (/vercel/path0/node_modules/.pnpm/esbuild@0.16.9/node_modules/esbuild/lib/main.js:752:9)
20:32:01.176 | at Socket.readFromStdout (/vercel/path0/node_modules/.pnpm/esbuild@0.16.9/node_modules/esbuild/lib/main.js:673:7)
20:32:01.176 | at Socket.emit (node:events:513:28)
20:32:01.176 | at Socket.emit (node:domain:489:12)
20:32:01.176 | at addChunk (node:internal/streams/readable:324:12)
20:32:01.176 | at readableAddChunk (node:internal/streams/readable:297:9)
20:32:01.176 | at Readable.push (node:internal/streams/readable:234:10)
20:32:01.242 | ELIFECYCLE Command failed with exit code 1.
20:32:01.265 | Error: Command "pnpm run build" exited with 1
same here. i don't use Vercel though. can someone provide a workaround? any ETA on the fix?
I'm trying to find the cause at the moment.
Same here.
Same here
I think it's a sveltekit 1.0.1 issue. Reverting to 1.0.0 made things work for me.
I think it's a sveltekit 1.0.1 issue. Reverting to 1.0.0 made things work for me.
It is strange because 1.0.1 only explicitly mark Node 17.x as not supported. I update run "npm update" and get the error. If I only do "npm i" with the same versions of packages, works fine.
Same here. If anyone manages to find out why, please let me know here. I'm investigating too.
Same here. Tried sveltekit 1.0.0 and 1.0.1 with pnpm, neither works.
I opened an issue https://github.com/sveltejs/kit/issues/8218
An workaround solution:
rm -rf node_modules pnpm-lock.yaml .svelte-kit
pnpm i esbuild@0.16.8
npx svelte-kit sync
pnpm build
It seems all components with event forwarding break with SvelteKit1.*.*
.
It seems all components with event forwarding break with
SvelteKit1.*.*
.
No, it was working in SK 1.0.0 release. The problem occurs with the esbuild@0.16.9 dependency, updated yesterday.
With esbuild@0.16.8
work normal.
I have SK 1.0.0. and NPM Did the following to make it work:
rm -rf node_modules
npm i esbuild@0.16.8
npx svelte-kit sync
npm i
Please use @sveltejs/kit ^1.0.0 and esbuild 0.16.8 for now.
Use "build": "vite build",
in the package.json's scripts.
Describe the bug
Following the Getting Started page, it returns errors:
Reproduction
https://stackblitz.com/edit/sveltejs-kit-template-default-1wwsto?file=src/app.postcss
Flowbite version and System Info