From 2bd76ab1bf5c60819a934ae1a4e6a4a2d41ef9b6 Mon Sep 17 00:00:00 2001 From: Chua Chee How Date: Sat, 2 Feb 2019 12:58:55 +0800 Subject: [PATCH] Update faqs.md on version 4.6.2 error message Describes the solution to fix the error mesage when bundling with version 4.6.2 --- docs/faqs.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/docs/faqs.md b/docs/faqs.md index ac015f9..c1a58cc 100644 --- a/docs/faqs.md +++ b/docs/faqs.md @@ -7,4 +7,21 @@ `vue-template-compiler` has a constraint that it should be exact same version as `vue` that is why it is included as peer dependency. Make sure you install `vue-template-compiler` and `vue` in your project. - **Error: Cannot find module `less` or `node-sass` or `stylus`?** - If you're using any of the style languages (other than css) supported in `.vue` file, you have to install that language's compiler. \ No newline at end of file + If you're using any of the style languages (other than css) supported in `.vue` file, you have to install that language's compiler. + +- **Error: 'default' is not exported by node_modules/vue-runtime-helpers/dist/normalize-component.js** + You may encounter this error when using version 4.6.2 onwards. The solution is to include `rollup-plugin-commonjs`. In your config file `rollup.config.js`, you have to import this plugin and invoke it like so: + + ``` + import vue from 'rollup-plugin-vue'; + import commonjs from 'rollup-plugin-commonjs'; + + export default { + entry: 'index.js', + plugins: [ + commonjs(), + vue(), + ] + } + ``` + pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy