Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vaadin 24.6.0 doesn't compile the frontend, downgrade to 24.5.8 works as usually #7139

Closed
jeannot-muller opened this issue Dec 20, 2024 · 4 comments
Labels

Comments

@jeannot-muller
Copy link

jeannot-muller commented Dec 20, 2024

Describe the bug

The flow compilation is working, but the frontend fails. I deleted the former build and caches.

------------------ Starting Frontend compilation. ------------------
2024-12-20T10:25:39.535+01:00  INFO 45587 --- [onPool-worker-1] c.v.b.devserver.AbstractDevServerRunner  : Running Vite to compile frontend resources. This may take a moment, please stand by...
10:25:39 [ForkJoinPool.commonPool-worker-1] INFO  c.v.b.d.AbstractDevServerRunner - Running Vite to compile frontend resources. This may take a moment, please stand by...
INFO  c.v.b.d.AbstractDevServerRunner - Running Vite to compile frontend resources. This may take a moment, please stand by...
2024-12-20T10:25:39.647+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   : ✘ [ERROR] Expected identifier but found "import"
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker - ✘ [ERROR] Expected identifier but found "import"
INFO  c.v.b.d.DevServerOutputTracker - ✘ [ERROR] Expected identifier but found "import"
2024-12-20T10:25:39.648+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   : 
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker - 
INFO  c.v.b.d.DevServerOutputTracker - 
2024-12-20T10:25:39.648+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   :     (define name):1:0:
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker -     (define name):1:0:
INFO  c.v.b.d.DevServerOutputTracker -     (define name):1:0:
2024-12-20T10:25:39.648+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   :       1 │ import.meta.dirname
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker -       1 │ import.meta.dirname
INFO  c.v.b.d.DevServerOutputTracker -       1 │ import.meta.dirname
2024-12-20T10:25:39.648+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   :         ╵ ~~~~~~
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker -         ╵ ~~~~~~
INFO  c.v.b.d.DevServerOutputTracker -         ╵ ~~~~~~
2024-12-20T10:25:39.648+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   : 
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker - 
INFO  c.v.b.d.DevServerOutputTracker - 
2024-12-20T10:25:39.648+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   : ✘ [ERROR] Expected identifier but found "import"
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker - ✘ [ERROR] Expected identifier but found "import"
INFO  c.v.b.d.DevServerOutputTracker - ✘ [ERROR] Expected identifier but found "import"
2024-12-20T10:25:39.648+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   : 
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker - 
INFO  c.v.b.d.DevServerOutputTracker - 
2024-12-20T10:25:39.648+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   :     (define name):1:0:
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker -     (define name):1:0:
INFO  c.v.b.d.DevServerOutputTracker -     (define name):1:0:
2024-12-20T10:25:39.648+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   :       1 │ import.meta.filename
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker -       1 │ import.meta.filename
INFO  c.v.b.d.DevServerOutputTracker -       1 │ import.meta.filename
2024-12-20T10:25:39.648+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   :         ╵ ~~~~~~
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker -         ╵ ~~~~~~
INFO  c.v.b.d.DevServerOutputTracker -         ╵ ~~~~~~
2024-12-20T10:25:39.648+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   : 
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker - 
INFO  c.v.b.d.DevServerOutputTracker - 
2024-12-20T10:25:39.648+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   : ✘ [ERROR] Expected identifier but found "import"
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker - ✘ [ERROR] Expected identifier but found "import"
INFO  c.v.b.d.DevServerOutputTracker - ✘ [ERROR] Expected identifier but found "import"
2024-12-20T10:25:39.648+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   : 
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker - 
INFO  c.v.b.d.DevServerOutputTracker - 
2024-12-20T10:25:39.648+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   :     (define name):1:0:
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker -     (define name):1:0:
INFO  c.v.b.d.DevServerOutputTracker -     (define name):1:0:
2024-12-20T10:25:39.648+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   :       1 │ import.meta.url
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker -       1 │ import.meta.url
INFO  c.v.b.d.DevServerOutputTracker -       1 │ import.meta.url
2024-12-20T10:25:39.648+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   :         ╵ ~~~~~~
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker -         ╵ ~~~~~~
INFO  c.v.b.d.DevServerOutputTracker -         ╵ ~~~~~~
2024-12-20T10:25:39.648+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   : 
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker - 
INFO  c.v.b.d.DevServerOutputTracker - 
2024-12-20T10:25:39.648+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   : failed to load config from /Users/jmu/java/myProject/vite.config.ts
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker - failed to load config from /Users/jmu/java/myProject/vite.config.ts
INFO  c.v.b.d.DevServerOutputTracker - failed to load config from /Users/jmu/java/myProject/vite.config.ts
2024-12-20T10:25:39.649+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   : error when starting dev server:
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker - error when starting dev server:
INFO  c.v.b.d.DevServerOutputTracker - error when starting dev server:
2024-12-20T10:25:39.649+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   : Error: Build failed with 3 errors:
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker - Error: Build failed with 3 errors:
INFO  c.v.b.d.DevServerOutputTracker - Error: Build failed with 3 errors:
2024-12-20T10:25:39.649+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   : (define name):1:0: ERROR: Expected identifier but found "import"
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker - (define name):1:0: ERROR: Expected identifier but found "import"
INFO  c.v.b.d.DevServerOutputTracker - (define name):1:0: ERROR: Expected identifier but found "import"
2024-12-20T10:25:39.649+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   : (define name):1:0: ERROR: Expected identifier but found "import"
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker - (define name):1:0: ERROR: Expected identifier but found "import"
INFO  c.v.b.d.DevServerOutputTracker - (define name):1:0: ERROR: Expected identifier but found "import"
2024-12-20T10:25:39.649+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   : (define name):1:0: ERROR: Expected identifier but found "import"
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker - (define name):1:0: ERROR: Expected identifier but found "import"
INFO  c.v.b.d.DevServerOutputTracker - (define name):1:0: ERROR: Expected identifier but found "import"
2024-12-20T10:25:39.649+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   :     at failureErrorWithLog (/Users/jmu/java/myProject/node_modules/.pnpm/esbuild@0.24.1/node_modules/esbuild/lib/main.js:1476:15)
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker -     at failureErrorWithLog (/Users/jmu/java/myProject/node_modules/.pnpm/esbuild@0.24.1/node_modules/esbuild/lib/main.js:1476:15)
INFO  c.v.b.d.DevServerOutputTracker -     at failureErrorWithLog (/Users/jmu/java/myProject/node_modules/.pnpm/esbuild@0.24.1/node_modules/esbuild/lib/main.js:1476:15)
2024-12-20T10:25:39.649+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   :     at /Users/jmu/java/myProject/node_modules/.pnpm/esbuild@0.24.1/node_modules/esbuild/lib/main.js:945:25
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker -     at /Users/jmu/java/myProject/node_modules/.pnpm/esbuild@0.24.1/node_modules/esbuild/lib/main.js:945:25
INFO  c.v.b.d.DevServerOutputTracker -     at /Users/jmu/java/myProject/node_modules/.pnpm/esbuild@0.24.1/node_modules/esbuild/lib/main.js:945:25
2024-12-20T10:25:39.649+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   :     at runOnEndCallbacks (/Users/jmu/java/myProject/node_modules/.pnpm/esbuild@0.24.1/node_modules/esbuild/lib/main.js:1316:45)
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker -     at runOnEndCallbacks (/Users/jmu/java/myProject/node_modules/.pnpm/esbuild@0.24.1/node_modules/esbuild/lib/main.js:1316:45)
INFO  c.v.b.d.DevServerOutputTracker -     at runOnEndCallbacks (/Users/jmu/java/myProject/node_modules/.pnpm/esbuild@0.24.1/node_modules/esbuild/lib/main.js:1316:45)
2024-12-20T10:25:39.649+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   :     at buildResponseToResult (/Users/jmu/java/myProject/node_modules/.pnpm/esbuild@0.24.1/node_modules/esbuild/lib/main.js:943:7)
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker -     at buildResponseToResult (/Users/jmu/java/myProject/node_modules/.pnpm/esbuild@0.24.1/node_modules/esbuild/lib/main.js:943:7)
INFO  c.v.b.d.DevServerOutputTracker -     at buildResponseToResult (/Users/jmu/java/myProject/node_modules/.pnpm/esbuild@0.24.1/node_modules/esbuild/lib/main.js:943:7)
2024-12-20T10:25:39.649+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   :     at /Users/jmu/java/myProject/node_modules/.pnpm/esbuild@0.24.1/node_modules/esbuild/lib/main.js:970:16
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker -     at /Users/jmu/java/myProject/node_modules/.pnpm/esbuild@0.24.1/node_modules/esbuild/lib/main.js:970:16
INFO  c.v.b.d.DevServerOutputTracker -     at /Users/jmu/java/myProject/node_modules/.pnpm/esbuild@0.24.1/node_modules/esbuild/lib/main.js:970:16
2024-12-20T10:25:39.649+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   :     at responseCallbacks.<computed> (/Users/jmu/java/myProject/node_modules/.pnpm/esbuild@0.24.1/node_modules/esbuild/lib/main.js:622:9)
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker -     at responseCallbacks.<computed> (/Users/jmu/java/myProject/node_modules/.pnpm/esbuild@0.24.1/node_modules/esbuild/lib/main.js:622:9)
INFO  c.v.b.d.DevServerOutputTracker -     at responseCallbacks.<computed> (/Users/jmu/java/myProject/node_modules/.pnpm/esbuild@0.24.1/node_modules/esbuild/lib/main.js:622:9)
2024-12-20T10:25:39.649+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   :     at handleIncomingPacket (/Users/jmu/java/myProject/node_modules/.pnpm/esbuild@0.24.1/node_modules/esbuild/lib/main.js:677:12)
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker -     at handleIncomingPacket (/Users/jmu/java/myProject/node_modules/.pnpm/esbuild@0.24.1/node_modules/esbuild/lib/main.js:677:12)
INFO  c.v.b.d.DevServerOutputTracker -     at handleIncomingPacket (/Users/jmu/java/myProject/node_modules/.pnpm/esbuild@0.24.1/node_modules/esbuild/lib/main.js:677:12)
2024-12-20T10:25:39.649+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   :     at Socket.readFromStdout (/Users/jmu/java/myProject/node_modules/.pnpm/esbuild@0.24.1/node_modules/esbuild/lib/main.js:600:7)
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker -     at Socket.readFromStdout (/Users/jmu/java/myProject/node_modules/.pnpm/esbuild@0.24.1/node_modules/esbuild/lib/main.js:600:7)
INFO  c.v.b.d.DevServerOutputTracker -     at Socket.readFromStdout (/Users/jmu/java/myProject/node_modules/.pnpm/esbuild@0.24.1/node_modules/esbuild/lib/main.js:600:7)
2024-12-20T10:25:39.649+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   :     at Socket.emit (node:events:514:28)
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker -     at Socket.emit (node:events:514:28)
INFO  c.v.b.d.DevServerOutputTracker -     at Socket.emit (node:events:514:28)
2024-12-20T10:25:39.649+01:00  INFO 45587 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker   :     at addChunk (node:internal/streams/readable:545:12)
10:25:39 [dev-server-output] INFO  c.v.b.d.DevServerOutputTracker -     at addChunk (node:internal/streams/readable:545:12)
INFO  c.v.b.d.DevServerOutputTracker -     at addChunk (node:internal/streams/readable:545:12)

------------------ Frontend compilation failed. ------------------

Expected-behavior

Working compilation.

Reproduction

Happens on multiple computers

System Info

macOS 15.2, Vaadin 24.6.0, Chrome 131.0.6778.205 (Official Build) (arm64)

@Artur-
Copy link
Member

Artur- commented Dec 20, 2024

This is a problem in a recently released esbuild: evanw/esbuild#4010

As long as you have the existing package-lock.json in the project, you should not experience it

@jeannot-muller
Copy link
Author

jeannot-muller commented Dec 20, 2024

ah, great ... thank you. I was wondering, as I had the perception that it did still worked yesterday.

@pepijnve
Copy link

I was able to work around the problem using an override in package.json that forces esbuild 0.24.0 to be used. See vitejs/vite#19018

@jeannot-muller
Copy link
Author

jeannot-muller commented Dec 20, 2024

yes, I can confirm that this is working. A bit of a dirty workaround but it does the job! Thank you all!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants