
Security News
Socket Integrates With Bun 1.3’s Security Scanner API
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
storybook-preset-nuxt
Advanced tools
Use @nuxtjs/storybook
instead.
One-line Nuxt.js configuration for Storybook.
This preset is designed to use alongside @storybook/vue
.
First, install this preset to your project.
# yarn
yarn add -D storybook-preset-nuxt@beta
# npm
npm i -D storybook-preset-nuxt@beta
Once installed, add this preset to the appropriate file:
.storybook/main.js
(for Storybook >= 5.3)
// .storybook/main.js
module.exports = { addons: ['storybook-preset-nuxt'] }
.storybook/presets.js
(for Storybook >= 5.1)
// .storybook/presets.js
module.exports = ['storybook-preset-nuxt']
If you have custom Nuxt config file, you can specify the path to the file.
// .storybook/main.js
const path = require('path')
module.exports = {
addons: [
{
name: 'storybook-preset-nuxt',
options: {
nuxtConfig: path.resolve(__dirname, '../path/to/config')
}
}
]
}
Since Storybook depends on core-js@3, in most cases, package managers resolves core-js
to core-js@3
. This would cause errors because Nuxt.js relies on core-js@2
. To solve these errors, add core-js@2
as a direct dependency of your package or setup Nuxt.js to use core-js@3
.
FAQs
Nuxt.js preset for Storybook
We found that storybook-preset-nuxt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Security News
Python 3.14 adds template strings, deferred annotations, and subinterpreters, plus free-threaded mode, an experimental JIT, and Sigstore verification.
Security News
Former RubyGems maintainers have launched The Gem Cooperative, a new community-run project aimed at rebuilding open governance in the Ruby ecosystem.