Skip to content

Incompatibility with dev mode in Vaadin 24.3.+? #186

@mthome

Description

@mthome

Describe the bug

When running in development mode, I observe the following output when starting up the initial application connection. Note that a) production mode works fine and b) these are css file packaged with twincolgrid. Might this be because of vaadin's change from vaadin.whitelisted-packages to vaadin.allowed-packages?

java.lang.IllegalStateException: 

  Failed to find the following css files in the `node_modules` or `/Users/mthome/rep/acjpa/browser/./src/main/frontend` directory tree:
      - ./styles/twincol-grid.css
      - ./styles/twin-col-grid-button.css
      - ./styles/multiselect-cb-hide.css
  Check that they exist or are installed. If you use a custom directory for your resource files instead of the default `frontend` folder then make sure it's correctly configured (e.g. set 'vaadin.frontend.frontend.folder' property)
	at com.vaadin.flow.server.frontend.AbstractUpdateImports.getCssLines(AbstractUpdateImports.java:502) ~[flow-server-24.4.16.jar!/:24.4.16]
	at com.vaadin.flow.server.frontend.AbstractUpdateImports.process(AbstractUpdateImports.java:376) ~[flow-server-24.4.16.jar!/:24.4.16]
	at com.vaadin.flow.server.frontend.AbstractUpdateImports.run(AbstractUpdateImports.java:161) ~[flow-server-24.4.16.jar!/:24.4.16]
	at com.vaadin.flow.server.frontend.TaskUpdateImports.execute(TaskUpdateImports.java:80) ~[flow-server-24.4.16.jar!/:24.4.16]
	at com.vaadin.flow.server.frontend.NodeTasks.execute(NodeTasks.java:348) ~[flow-server-24.4.16.jar!/:24.4.16]
	at com.vaadin.base.devserver.startup.DevModeInitializer.runNodeTasks(DevModeInitializer.java:356) ~[vaadin-dev-server-24.4.16.jar!/:?]
	at com.vaadin.base.devserver.startup.DevModeInitializer.lambda$initDevModeHandler$0(DevModeInitializer.java:297) ~[vaadin-dev-server-24.4.16.jar!/:?]
...

Expected behavior

dev mode doesn't crash in an application that uses twincolgrid

Minimal reproducible example

No response

Add-on Version

2.9.5

Vaadin Version

24.6.5

Additional information

Dev mode works for me in vaadin versions prior to 24. production mode works for all including the current 24.6.5. I cannot tell if this is a vaadin bug, a twincolgrid issue, or a configuration issue somewhere in my build environment.

Also, my application uses gradle (currently 8.7), so it is possible that there is a difference between the vaadin gradle and maven plugins.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Under consideration

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions