Skip to content
Home » Module parse failed: Unexpected token (763:13) in VueJs

Module parse failed: Unexpected token (763:13) in VueJs

To solve Module parse failed: Unexpected token (763:13) in VueJs error follow below methods.

ERROR LOG

ERROR  Failed to compile with 1 error                                                                                                                                                                        
 error  in ./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js

Module parse failed: Unexpected token (763:13)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| }
| class RefImpl {
>     _rawValue;
|     _shallow;
|     _value;

How to solve Module parse failed: Unexpected token (763:13) in VueJs ?

To Resolve Module Parse Error: To resolve Unexpected token (763:13) in VueJs Error, simply use Transpile @vue/reactivity. Alternatively, you can Simply run the following commands to downgrade the vueJs version: npm uninstall vue followed by npm i -S vue@3.1.2 Vue CLI 5 is another option.

Choose any one of the way below.

By using Transpile @vue/reactivity

Add the below code in your vue.config.js

// vue.config.js
module.exports = {
  transpileDependencies: ['@vue/reactivity']
}

By Downgrading to Vue 3.1.2

You can fix the issue by Just downgrading the vueJs version to 3.1.2 by using the following command.

npm uninstall vue
npm i -S vue@3.1.2

Solve Module parse failed: Unexpected token (763:13) in VueJs Using Vue CLI 5

You can also use Vue CLI 5 to fix the issue.

npm i -g @vue/cli@5

Hope the above solution works.

Also read :

ValueError: check_hostname requires server_hostname
TypeError: __array__() takes 1 positional argument but 2 were given