Skip to content

Vaadin 25: error during build (failed to resolve import @vaadin/vaadin-lumo-styles/badge-global.js) #27

@javier-godoy

Description

@javier-godoy

Describe the bug

error during build:
[vite]: Rollup failed to resolve import "@vaadin/vaadin-lumo-styles/badge-global.js" from "J:/fc/addons/fc-addons-demos-25/src/main/frontend/generated/flow/generated-flow-imports.js".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
build.rollupOptions.external
at viteLog (file:///J:/fc/addons/fc-addons-demos-25/node_modules/vite/dist/node/chunks/dep-Chhhsdoe.js:33989:57)
at file:///J:/fc/addons/fc-addons-demos-25/node_modules/vite/dist/node/chunks/dep-Chhhsdoe.js:34025:73
at Object.onwarn (file:///J:/fc/addons/fc-addons-demos-25/node_modules/.vite-temp/vite.config.ts.timestamp-1760555176263-7595e4442ab3.mjs:1496:11)
at onwarn (file:///J:/fc/addons/fc-addons-demos-25/node_modules/@vitejs/plugin-react/dist/index.js:54:78)
at file:///J:/fc/addons/fc-addons-demos-25/node_modules/vite/dist/node/chunks/dep-Chhhsdoe.js:34025:28
at onRollupLog (file:///J:/fc/addons/fc-addons-demos-25/node_modules/vite/dist/node/chunks/dep-Chhhsdoe.js:34020:63)
at onLog (file:///J:/fc/addons/fc-addons-demos-25/node_modules/vite/dist/node/chunks/dep-Chhhsdoe.js:33821:4)
at file:///J:/fc/addons/fc-addons-demos-25/node_modules/rollup/dist/es/shared/node-entry.js:20937:32
at Object.logger [as onLog] (file:///J:/fc/addons/fc-addons-demos-25/node_modules/rollup/dist/es/shared/node-entry.js:22823:9)
at ModuleLoader.handleInvalidResolvedId (file:///J:/fc/addons/fc-addons-demos-25/node_modules/rollup/dist/es/shared/node-entry.js:21567:26)
at file:///J:/fc/addons/fc-addons-demos-25/node_modules/rollup/dist/es/shared/node-entry.js:21525:26

Expected behavior

Build should not fail (?)

Minimal reproducible example

https://github.com/FlowingCode/AddonsDemo/tree/vaadin25

Add-on Version

1.1.2-SNAPSHOT

Vaadin Version

25.0.0-alpha14

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    To Do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions