My vaadin 23 project has just started generating a error on startup.
DefaultDeploymentConfiguration.java:158) -
Vaadin is running in DEBUG MODE.
When deploying application for production, remember to disable debug features. See more from https://vaadin.com/docs/
org.apache.coyote.AbstractProtocol start
Starting ProtocolHandler ["http-nio-8080"]
org.apache.catalina.startup.Catalina start
Server startup in [6,702] milliseconds
DevServerOutputTracker.java:110) - [build-status] : Compiled.
----------------- Frontend compiled successfully. -----------------
DefaultDeploymentConfiguration.java:158) -
Vaadin is running in DEBUG MODE.
When deploying application for production, remember to disable debug features. See more from https://vaadin.com/docs/
org.apache.coyote.AbstractProtocol start
Starting ProtocolHandler ["http-nio-8080"]
org.apache.catalina.startup.Catalina start
Server startup in [6,702] milliseconds
DevServerOutputTracker.java:110) - [build-status] : Compiled.
----------------- Frontend compiled successfully. -----------------
AbstractDevServerRunner.java:223) - Started Webpack. Time: 5777ms
DevServerOutputTracker.java:110) - ERROR in frontend/generated/vaadin.ts:7:28
DevServerOutputTracker.java:110) - TS2307: Cannot find module './theme' or its corresponding type declarations.
DevServerOutputTracker.java:110) - 5 | import '@vaadin/flow-frontend/VaadinDevmodeGizmo.js';
DevServerOutputTracker.java:110) - 6 |
DevServerOutputTracker.java:110) - > 7 | import { applyTheme } from './theme';
DevServerOutputTracker.java:110) - | ^^^^^^^^^
DevServerOutputTracker.java:110) - 8 | applyTheme(document);
DevServerOutputTracker.java:110) - 9 |
DevServerOutputTracker.java:110) -
DevServerOutputTracker.java:110) -
DevServerOutputTracker.java:110) - WARNING in InjectManifest has been called multiple times, perhaps due to running webpack in --watch mode. The precache manifest generated after the first call may be inaccurate! Please see https://github.com/GoogleChrome/workbox/issues/1790 for more information.
DevServerOutputTracker.java:110) - [build-status] 1 warning were reported.
DevServerOutputTracker.java:110) - [build-status] : Compiled.
I've tried deleting my node_modules directory and the target directory followed by a mvn install.
I've also tried upgrading to the last version of vaadin v23.0.11.
Edit: since my original post this error randomly went away.
It has now re-emerged except now I can't actually access the web page due to the following error being displayed:
Webpack Error Close
ERROR in frontend/generated/vaadin.ts:7:28
TS2307: Cannot find module './theme' or its corresponding type declarations.
5 | import '@vaadin/flow-frontend/VaadinDevmodeGizmo.js';
6 |
> 7 | import { applyTheme } from './theme';
| ^^^^^^^^^
8 | applyTheme(document);
9 |
WARNING in InjectManifest has been called multiple times, perhaps due to running webpack in --watch mode. The precache manifest generated after the first call may be inaccurate! Please see https://github.com/GoogleChrome/workbox/issues/1790 for more information.
ERROR in ./generated/index.ts
Module not found: Error: Can't resolve '../../target/frontend/generated-flow-imports' in 'onepub-vaadin/frontend/generated'
[build-status] 1 error and 1 warning were reported.