powa-team / powa-web

PoWA user interface
http://powa.readthedocs.io/
74 stars 31 forks source link

v5 is not compatible with node 22 #195

Closed rjuju closed 5 months ago

rjuju commented 5 months ago

Trying to start the vite server fails with:

$ npm run dev

> powa@0.1.0 dev
> vite

failed to load config from /home/rjuju/git/powa/powa-web/vite.config.js
error when starting dev server:
SyntaxError: Unexpected identifier 'assert'
    at compileSourceTextModule (node:internal/modules/esm/utils:337:16)
    at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:163:18)
    at callTranslator (node:internal/modules/esm/loader:430:14)
    at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:436:30)

That seems to be a problem introduced with node 22.

rjuju commented 5 months ago

Thanks a lot for the fix @pgiraud !