# VUE.config.js Module parse failed: Unexpected token

**URL:** <https://forum.babylonjs.com/t/vue-config-js-module-parse-failed-unexpected-token/48942>\
**Category:** Questions\
**Created:** [March 21, 2024, 1:23pm UTC](https://forum.babylonjs.com/t/vue-config-js-module-parse-failed-unexpected-token/48942 "2024-03-21T13:23:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moriy](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/moriy/32/30563_2.png) [@Moriy](https://forum.babylonjs.com/u/Moriy)\
**Post date:** [March 21, 2024, 1:23pm UTC](https://forum.babylonjs.com/t/vue-config-js-module-parse-failed-unexpected-token/48942/1 "2024-03-21T13:23:53Z")

</div>

![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/c/2/c2b55af4fbec881cf1714a0827353cb7bd1d804b.png)  
It use vue.config.js to configureWebpack and chainWebpack  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/f/2/f2029c845a040772b41dfb417b58b59b02cde3b8.png)

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [March 21, 2024, 5:32pm UTC](https://forum.babylonjs.com/t/vue-config-js-module-parse-failed-unexpected-token/48942/2 "2024-03-21T17:32:30Z")

</div>

@RaananW might have some ideas

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [March 21, 2024, 6:29pm UTC](https://forum.babylonjs.com/t/vue-config-js-module-parse-failed-unexpected-token/48942/3 "2024-03-21T18:29:17Z")

</div>

I don’t see the babylon version you are using, but even with that - it would be great to have a project reproduction to understand what’s going on.

I am also not sure why the webpack loader is used in a vite project, but that might be something that does work? Also babel is probably not needed?

Anyhow - tl;dr - reproduction would be great, otherwise - hard to help.
