QingWei-Li / vue-markdown-loader

📇 Convert Markdown file to Vue2.0 component.
704 stars 162 forks source link

You may need an appropriate loader to handle this file type. #30

Closed metamn closed 7 years ago

metamn commented 7 years ago

Hello & thanks for the plugin !

I'm trying to add to my project but getting an error message:

ERROR in ./src/stories/README.md Module parse failed: /home/cs/work/vue/test1/src/stories/README.md Unexpected character '#' (1:0) You may need an appropriate loader to handle this file type. | # README | | @ ./src/stories/index.js 9:0-39 @ ./.storybook/config.js @ multi ./~/@storybook/vue/dist/server/config/polyfills.js ./~/@storybook/vue/dist/server/config/globals.js (webpack)-hot-middleware/client.js?reload=true ./.storybook/config.js

Here is the webpack config file: https://github.com/metamn/vue/blob/master/test1/build/webpack.base.conf.js

And here is the code: https://github.com/metamn/vue/blob/master/test1/src/stories/index.js

Can you please advice me how to fix it? Thank you.

QingWei-Li commented 7 years ago

I think you shoud add your config in .storybook/webpack.config.js. See https://storybook.js.org/configurations/custom-webpack-config/#extend-mode

metamn commented 7 years ago

Oh, thanks, that was the case :+1: