Description
🐛 bug report
Howdy! I'm the author of vue-storybook
, a library that allows Vue developers to add <story>
blocks to their Vue single-file components and have them automatically translated into Storybook stories.
Parcel is my go-to bundler, though I'm experiencing some strange behavior when bundling/publishing my library code and subsequently using it in a freshly scaffolded Vue CLI project. Without fail, when running the Vue development server, I'm getting the following warning:
WARNING in ./node_modules/vue-storybook/dist/index.js 1:292-296
Critical dependency: the request of a dependency is an expression
@ ./config/storybook/config.js
@ multi ./node_modules/@storybook/core/dist/server/common/polyfills.js ./node_modules/@storybook/core/dist/server/preview/globals.js ./config/storybook/config.js ./node_modules/webpack-hot-middleware/client.js?reload=true
I'm confused, because I don't see this message when I bundle my library code with Webpack or Rollup. I'm doubly confused because I'm not using any special configuration with Parcel, just a good ole' build
command. It's just a warning, so I'm not too concerned. But I've gotten user feedback that this is distracting. I'd like the warning to go away.
🎛 Configuration (.babelrc, package.json, cli command)
There's no Babel configuration for vue-storybook
, though freshly scaffolded Vue CLI projects have the following babel.config.js
module.exports = {
presets: [
'@vue/app'
]
}
🤔 Expected Behavior
When using vue-storybook
with a freshly scaffolded Vue CLI project, there should be no such warning about the request of a dependency is an expression
😯 Current Behavior
When using vue-storybook
with a freshly scaffolded Vue CLI project, there is a warning about the request of a dependency is an expression
💁 Possible Solution
No ideas. I'm fairly certain this is user error somewhere on my part.
🔦 Context
I'm trying to publish a new version of my library (bundled with Parcel), and I'd like consumers not to see this warning message when using it.
🌍 Your Environment
Software | Version(s) |
---|---|
Parcel | 1.12.3 |
Node | 10.15.1 |
npm/Yarn | 1.13.0 |
Operating System | OSX 10.14.3 |