You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note. The current exported webcomponents uses v14 bootstrapping so it depends on stats.json to get the bundlefile name.
For a production mode build in flow-test-embedding-generic you get:
com.vaadin.flow.server.BootstrapException: Unable to read webpack stats file.
at com.vaadin.flow.server.BootstrapHandler$BootstrapPageBuilder.setupFrameworkLibraries(BootstrapHandler.java:863)
at com.vaadin.flow.server.BootstrapHandler$BootstrapPageBuilder.setupDocumentHead(BootstrapHandler.java:753)
at com.vaadin.flow.server.BootstrapHandler$BootstrapPageBuilder.getBootstrapPage(BootstrapHandler.java:628)
at com.vaadin.flow.server.communication.WebComponentBootstrapHandler.synchronizedHandleRequest(WebComponentBootstrapHandler.java:224)
The exported component would seem to work as long as the BootstrapHandler::appendNpmBundle is made to get the correct bundle file. In production mode we could at the moment probably read that from the classpath, but where could we get the info in development mode?
Should we parse the index.html for all the required bundles perhaps?
Activity
caalador commentedon Nov 2, 2021
Note. The current exported webcomponents uses v14 bootstrapping so it depends on stats.json to get the bundlefile name.
For a production mode build in flow-test-embedding-generic you get:
caalador commentedon Nov 3, 2021
The exported component would seem to work as long as the
BootstrapHandler::appendNpmBundleis made to get the correct bundle file. In production mode we could at the moment probably read that from the classpath, but where could we get the info in development mode?Should we parse the index.html for all the required bundles perhaps?
feat: support vite in v14 bootstrap
feat: support vite in v14 bootstrap
feat: support vite in v14 bootstrap
feat: support vite in v14 bootstrap (#12259)