Skip to content

Vaadin 25: error during build (sass.initAsyncCompiler is not a function) #27

@javier-godoy

Description

@javier-godoy

Describe the bug

I attempted to use the add-on with Vaadin 25 and got the following error.
(I already have legacy-peer-deps=true in .npmrc)

error during build:
[vite:css] [sass] sass.initAsyncCompiler is not a function
file: J:/fc/addons/fc-addons-demos-25/node_modules/zoomist/src/scss/index.scss
at Object.run (file:///J:/fc/addons/fc-addons-demos-25/node_modules/vite/dist/node/chunks/dep-Chhhsdoe.js:32550:29)
at async process (file:///J:/fc/addons/fc-addons-demos-25/node_modules/vite/dist/node/chunks/dep-Chhhsdoe.js:32609:20)
at async compileCSSPreprocessors (file:///J:/fc/addons/fc-addons-demos-25/node_modules/vite/dist/node/chunks/dep-Chhhsdoe.js:32043:27)
at async compileCSS (file:///J:/fc/addons/fc-addons-demos-25/node_modules/vite/dist/node/chunks/dep-Chhhsdoe.js:32071:30)
at async Object.handler (file:///J:/fc/addons/fc-addons-demos-25/node_modules/vite/dist/node/chunks/dep-Chhhsdoe.js:31613:54)
at async transform (file:///J:/fc/addons/fc-addons-demos-25/node_modules/rollup/dist/es/shared/node-entry.js:21139:16)
at async ModuleLoader.addModuleSource (file:///J:/fc/addons/fc-addons-demos-25/node_modules/rollup/dist/es/shared/node-entry.js:21352:36)

Expected behavior

Build should not fail (?)

Minimal reproducible example

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

Add-on Version

1.0.1-SNAPSHOT

Vaadin Version

25.0.0-alpha14

Additional information

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions