nuxt-modules / storybook

Storybook integration with Nuxt.
https://storybook.nuxtjs.org
378 stars 82 forks source link

'The entry point "vue" cannot be marked as external' after installing Nuxt Storybook module #656

Closed MooseSaeed closed 1 week ago

MooseSaeed commented 1 week ago

Description:

I encountered an issue after installing the Nuxt Storybook module in a new Nuxt project. Upon running yarn dev, the following error appears in the console:

✘ [ERROR] The entry point "vue" cannot be marked as external

Steps to Reproduce:

  1. Create a new Nuxt project using npx nuxi@latest init my-project
  2. Navigate to the project directory: cd my-project
  3. Install the Nuxt Storybook module: npx nuxi@latest module add storybook
  4. Run the development server: yarn dev

Expected Behavior:

The Nuxt development server should start without errors, and the Storybook module should be correctly initialized.

Actual Behavior:

The storybook server fails to start, and the following error is shown in the console:

✘ [ERROR] The entry point "vue" cannot be marked as external

Repro:

https://github.com/MooseSaeed/test-nuxt

Additional Context:

I have not made any other changes to the default configuration of the new Nuxt project. This error appears to be directly related to the Nuxt Storybook module.

blowsie commented 1 week ago

Me too, I found this related PR https://github.com/nuxt-modules/storybook/pull/634 https://github.com/nuxt-modules/storybook/issues/641

tobiasdiez commented 1 week ago

Yes, this should be fixed in the main branch. It might take a couple of days until we release it. Alternatively, it should work if you downgrade nuxt to v 3.11.x

MooseSaeed commented 1 week ago

@tobiasdiez I tried to downgrade nuxt to v 3.11 and 3.10 but still getting the same issue

blowsie commented 1 week ago

Worked for me, be sure to remove a ^ symbol in the package json if you have one