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

ParseError: Support for the experimental syntax 'importAttributes' isn't currently enabled #704

Closed
NRodriguezcuellar opened this issue Jul 12, 2024 · 0 comments · Fixed by #722
Labels
type: bug Something isn't working

Comments

@NRodriguezcuellar
Copy link

NRodriguezcuellar commented Jul 12, 2024

Using the latest version 8.1.5 i get the following error

/home/nico/Documents/projects/{project}/node_modules/.pnpm/@nuxtjs+storybook@8.1.5_@babel+preset-env@7.24.7_@babel+core@7.24.7__@types+node@20.14.9_esli_nactxph…
│  ERROR  ParseError: Support for the experimental syntax 'importAttributes' isn't currently enabled (8:72):
│ Add @babel/plugin-syntax-import-attributes (https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-attributes) to the 'plugins' section of your Babel …
│ If you already added the plugin for this syntax to your config, it's possible that your config isn't being loaded.
│ You can re-run Babel with the BABEL_SHOW_CONFIG_FOR environment variable to show the loaded configuration:
│       npx cross-env BABEL_SHOW_CONFIG_FOR=/ <your build command>
│ See https://babeljs.io/docs/configuration#print-effective-configs for more info.

it seems nuxt can't import the module anymore because of the use of

 import with { type:json }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
2 participants