Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why isn't vue-loader working with storybook?

I am using vuetify with storybook.

When I try to view my components (in storybook only - they work fine in my vue app) I receive this error:

[Vue warn]: Failed to mount component: template or render function not defined.

My webpack.config.js file for storybook looks like this:

const VuetifyLoaderPlugin = require('vuetify-loader/lib/plugin')
module.exports = {
  plugins: [
    new VuetifyLoaderPlugin()

  ],
  module: {
    rules: [
      {
        test: /\.styl$/,
        loader: ['style-loader', 'css-loader', 'stylus-loader']
      },
      {
        test: /\.vue$/,
        loader: 'vue-loader'
      },

    ]
  }
}

What am I missing here?

like image 928
user602525 Avatar asked Nov 08 '22 00:11

user602525


1 Answers

Just try npm add -D @andoshin11/storybook-vue3, it works :)

like image 191
Durga Avatar answered Nov 14 '22 21:11

Durga