storybook icon indicating copy to clipboard operation
storybook copied to clipboard

Issue on install. Babel plugin syntax import attributes.

Open jaguar19961 opened this issue 1 year ago • 1 comments

Hello, I have some issues. I installed it on fresh nuxt3.

  1. "@storybook-vue/nuxt": "^8.1.5",
  2. "nuxt": "3.6.5",

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 config to enable parsing.

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=/ See https://babeljs.io/docs/configuration#print-effective-configs for more info.

jaguar19961 avatar Aug 13 '24 21:08 jaguar19961

Where do you add babel? (and why do you need it?) Could you please provide a minimal reproduction? Thanks!

tobiasdiez avatar Aug 28 '24 10:08 tobiasdiez