Open web-padawan opened 2 years ago
This is related to the bundle. If you delete node_modules/@vaadin/bundles
then the app works
Is there any way to make this work with Vaadin 23.2 (23.2.5 as of today)? We'd like to migrate to Vite now, but since we're using the material theme that doesn't seem possible.
@c-t-disher You could try to update vite.config.ts
as follows to disable dependencies pre-bundling, it seems to help:
import { UserConfigFn } from 'vite';
import { overrideVaadinConfig } from './vite.generated';
const customConfig: UserConfigFn = (env) => ({
// Here you can add custom Vite parameters
// https://vitejs.dev/config/
optimizeDeps: {
disabled: true,
},
});
export default overrideVaadinConfig(customConfig);
Description of the bug
When using Material theme, the application fails in development mode with the following error:
Minimal reproducible example
Place this to a new project from https://start.vaadin.com and delete
frontend/themes
folder.Expected behavior
There should not be an error thrown when using Material theme.
Actual behavior
An error is thrown in the console, and the UI does not open. I guess this could be caused by using
@vaadin/bundles
.Versions: