Skip to content

Package subpath './dist/vue.esm-bundler.js' is not defined #16180

Closed

Description

Describe the bug
npm run storybook cannot run due to the following error:
Package subpath './dist/vue.esm-bundler.js' is not defined

To Reproduce
I made a reproduction repo here.
The following was done:

vue create
npx sb init

https://github.com/pberoy/storybook-vue3-bug-repro

System
Environment Info:

System:
OS: Linux 4.19 Ubuntu 20.04 LTS (Focal Fossa)
CPU: (8) x64 Intel(R) Core(TM) i5-8400H CPU @ 2.50GHz
Binaries:
Node: 14.5.0 - ~/.nvm/versions/node/v14.5.0/bin/node
npm: 7.19.1 - ~/.nvm/versions/node/v14.5.0/bin/npm
npmPackages:
@storybook/addon-actions: ^6.3.8 => 6.3.8
@storybook/addon-essentials: ^6.3.8 => 6.3.8
@storybook/addon-links: ^6.3.8 => 6.3.8
@storybook/vue3: ^6.3.8 => 6.3.8

Additional context
I did some digging and found that vue 3.2.18 has been causing issues.
Using <3.2.17 works for storybook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions