storybook: nuxt 2.9.2 does not run with storybook 5.2.1
Describe the bug
nuxt does not seem to run when yarn run dev is started a long with storybook.
To Reproduce Steps to reproduce the behavior:
- Create boilerplate:
yarn create nuxt-app <project-name> - Upgrade to nuxt 2.9.2:
yarn add nuxt@2.9.2 - Install @storybook/vue
yarn add @storybook/vue@5.2.1 - Install additional packages:
yarn add babel-preset-vue --dev - Create config file: https://storybook.js.org/docs/guides/guide-vue/#step-3-create-the-config-file
- Create
storiesfolder in project - Add
"scripts": {...,"storybook": "start-storybook"}to package.json - Start nuxt in dev:
yarn run dev - See error
Error
yarn run dev
yarn run v1.3.2
warning ../package.json: No license field
$ nuxt
╭─────────────────────────────────────────────╮
│ │
│ Nuxt.js v2.9.2 │
│ Running in development mode (universal) │
│ │
│ Listening on: http://localhost:3000/ │
│ │
╰─────────────────────────────────────────────╯
ℹ Preparing project for development 12:07:06
ℹ Initial build may take a while 12:07:06
✔ Builder initialized 12:07:06
✔ Nuxt files generated 12:07:06
✖ Client
Compiled with some errors in 5.01s
✔ Server
Compiled successfully in 4.23s
ERROR Failed to compile with 32 errors friendly-errors 12:07:13
These dependencies were not found: friendly-errors 12:07:13
friendly-errors 12:07:13
* core-js/modules/es6.array.find in ./.nuxt/client.js friendly-errors 12:07:13
* core-js/modules/es6.array.iterator in ./.nuxt/client.js friendly-errors 12:07:13
* core-js/modules/es6.date.to-string in ./.nuxt/utils.js friendly-errors 12:07:13
* core-js/modules/es6.function.name in ./.nuxt/utils.js friendly-errors 12:07:13
* core-js/modules/es6.object.assign in ./.nuxt/client.js friendly-errors 12:07:13
* core-js/modules/es6.object.keys in ./.nuxt/index.js friendly-errors 12:07:13
* core-js/modules/es6.object.to-string in ./.nuxt/router.scrollBehavior.js, ./.nuxt/components/nuxt-link.client.js friendly-errors 12:07:13
* core-js/modules/es6.promise in ./.nuxt/client.js friendly-errors 12:07:13
* core-js/modules/es6.regexp.constructor in ./.nuxt/utils.js friendly-errors 12:07:13
* core-js/modules/es6.regexp.match in ./.nuxt/client.js friendly-errors 12:07:13
* core-js/modules/es6.regexp.replace in ./.nuxt/utils.js, ./.nuxt/components/nuxt.js friendly-errors 12:07:13
* core-js/modules/es6.regexp.search in ./.nuxt/utils.js friendly-errors 12:07:13
* core-js/modules/es6.regexp.split in ./.nuxt/utils.js, ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib??vue-loader-options!./.nuxt/components/nuxt-build-indicator.vue?vue&type=script&lang=js&
* core-js/modules/es6.regexp.to-string in ./.nuxt/utils.js friendly-errors 12:07:13
* core-js/modules/es6.string.includes in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js friendly-errors 12:07:13
* core-js/modules/es6.string.iterator in ./.nuxt/App.js friendly-errors 12:07:13
* core-js/modules/es6.string.repeat in ./.nuxt/utils.js friendly-errors 12:07:13
* core-js/modules/es6.string.starts-with in ./.nuxt/utils.js friendly-errors 12:07:13
* core-js/modules/es6.symbol in ./.nuxt/index.js, ./.nuxt/components/nuxt-link.client.js friendly-errors 12:07:13
* core-js/modules/es7.array.includes in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js friendly-errors 12:07:13
* core-js/modules/es7.object.get-own-property-descriptors in ./.nuxt/index.js friendly-errors 12:07:13
* core-js/modules/es7.promise.finally in ./.nuxt/client.js friendly-errors 12:07:13
* core-js/modules/es7.symbol.async-iterator in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js friendly-errors 12:07:13
* core-js/modules/web.dom.iterable in ./.nuxt/App.js, ./.nuxt/components/nuxt-link.client.js friendly-errors 12:07:13
friendly-errors 12:07:13
To install them, you can run: npm install --save core-js/modules/es6.array.find core-js/modules/es6.array.iterator core-js/modules/es6.date.to-string core-js/modules/es6.function.name core-js/modules/es6.object.assign core-js/modules/es6.object.keys core-js/modules/es6.object.to-string core-js/modules/es6.promise core-js/modules/es6.regexp.constructor core-js/modules/es6.regexp.match core-js/modules/es6.regexp.replace core-js/modules/es6.regexp.search core-js/modules/es6.regexp.split core-js/modules/es6.regexp.to-string core-js/modules/es6.string.includes core-js/modules/es6.string.iterator core-js/modules/es6.string.repeat core-js/modules/es6.string.starts-with core-js/modules/es6.symbol core-js/modules/es7.array.includes core-js/modules/es7.object.get-own-property-descriptors core-js/modules/es7.promise.finally core-js/modules/es7.symbol.async-iterator core-js/modules/web.dom.iterable
ℹ Waiting for file changes 12:07:13
ℹ Memory usage: 138 MB (RSS: 254 MB)
Expected behavior That it compiles.
System:
$npx -p @storybook/cli@next sb info
Environment Info:
System:
OS: macOS High Sierra 10.13.6
CPU: (8) x64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
Binaries:
Node: 10.14.2 - /usr/local/bin/node
Yarn: 1.3.2 - /usr/local/bin/yarn
npm: 6.5.0 - /usr/local/bin/npm
Browsers:
Chrome: 77.0.3865.90
Firefox: 68.0.1
Safari: 12.1.2
npmPackages:
@storybook/vue: ^5.2.1 => 5.2.1
Additional context Add any other context about the problem here.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 23 (11 by maintainers)
@maziarz sweet! Closing the issue then, let me know if anything else comes up!
Nevermind. I deleted
node_modulesand theyarn.lock, everything seems to be running.@Aaron-Pool @ndelangen this looks like a core-js version issue. do you know if we have a workaround here?