-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
TypeError: Cannot read properties of undefined (reading 'config') with 6.0.7 #19144
Comments
Hello @Artur-. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
Can you try minimizing a repro? I cannot even tell which vite config or plugins are used. |
Thanks for having a look, I dug a bit deeper to see what is going on and now I am not sure if this is a Vite issue or not even though it has worked for a long time. The problem seems to come from this code, which runs rollup inside the Vite config: |
It looks like you're reusing Vite (internal) plugin as rollup plugin https://github.com/vaadin/flow/blob/e365417d6cf0c15ebfe8aaba14073976eb31f220/flow-server/src/main/resources/vite.generated.ts#L127-L135 and technically that's not supported officially. The change made by #19025 is a legitimate fix for Vite's own usage (and similar changes have been done / will be done for other internal plugins as well), so I think you have to find an alternative for doing sub build from your plugin. Though not knowing much context, how about using Vite's |
Describe the bug
Running
vite build
with Vite 6.0.7 fails withthe referenced line is
The code was added in #19025
Reproduction
vaadin/flow#20799
Steps to reproduce
mvn clean install -DskipTests
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: