Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken in node v22 #14

Open
theogravity opened this issue Aug 19, 2024 · 1 comment
Open

Broken in node v22 #14

theogravity opened this issue Aug 19, 2024 · 1 comment

Comments

@theogravity
Copy link

theogravity commented Aug 19, 2024

I'm trying out theming for the fusion auth hosted pages, in which the workflow looks amazing

https://fusionauth.io/docs/customize/look-and-feel/tailwind#installation

But, I'm having a problem on node v22 when I attempt to download the theme via the API as described in the docs:

file:///Users/theo/projects/monarch/developer-portal/fusion-auth-pages/node_modules/@fusionauth/cli/dist/index.js:7 import pkg from '../package.json' assert { type: 'json' };

This is because the assert syntax was changed in node v22:

https://stackoverflow.com/questions/78876691/syntaxerror-unexpected-identifier-assert-on-json-import-in-node-v22

they changed assert to with:

import config from "./some-config-file.json" with { type: "json" };

So basically @fusionauth/cli is incompatible with node v22 which is the current LTS.

@theogravity
Copy link
Author

Note in v20 and v22, you can use with, but not with v18:

nodejs/node#51622

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant