Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit 3c9293c

Browse files
rojakcoderznck
authored andcommitted
docs: Add FAQ on version 4.6.2 error message (#265)
Describes the solution to fix the error mesage when bundling with version 4.6.2
1 parent fd3dfb9 commit 3c9293c

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

docs/faqs.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,21 @@
77
`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.
88

99
- **Error: Cannot find module `less` or `node-sass` or `stylus`?**
10-
If you're using any of the style languages (other than css) supported in `.vue` file, you have to install that language's compiler.
10+
If you're using any of the style languages (other than css) supported in `.vue` file, you have to install that language's compiler.
11+
12+
- **Error: 'default' is not exported by node_modules/vue-runtime-helpers/dist/normalize-component.js**
13+
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:
14+
15+
```
16+
import vue from 'rollup-plugin-vue';
17+
import commonjs from 'rollup-plugin-commonjs';
18+
19+
export default {
20+
entry: 'index.js',
21+
plugins: [
22+
commonjs(),
23+
vue(),
24+
]
25+
}
26+
```
27+

0 commit comments

Comments
 (0)
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