coreui / coreui-free-vue-admin-template

Open source admin template based on Bootstrap 5 and Vue 3
https://coreui.io/product/free-vue-admin-template/
MIT License
3.28k stars 963 forks source link

Error loading vue.config.js: #275

Closed unitedmp closed 2 years ago

unitedmp commented 2 years ago

ERROR Error loading vue.config.js: ERROR TypeError: defineConfig is not a function TypeError: defineConfig is not a function at Object. (E:\Projects\Others\CoreUI-Vue\vue.config.js:2:18) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Service.loadUserOptions (E:\Projects\Others\CoreUI-Vue\node_modules\@vue\cli-service\lib\Service.js:283:22) at Service.init (E:\Projects\Others\CoreUI-Vue\node_modules\@vue\cli-service\lib\Service.js:72:30) at Service.run (E:\Projects\Others\CoreUI-Vue\node_modules\@vue\cli-service\lib\Service.js:204:10)

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions

iamchikalov commented 2 years ago

I have the same error, can't fix it

xduduaraujo commented 2 years ago

Just change your version of @vue/cli-service to latest version:

image

then run: yarn install

Should work

AhmedTrabelsy commented 1 year ago

vue --version @vue/cli 5.0.8 "@vue/cli-service": "5.0.8",

Works for me thanks !!

EnzoSives commented 10 months ago

Me sirvio! Muchas gracias!

nerfereyes commented 10 months ago

This worked for me. Thank you! :)

M-Deniz commented 9 months ago

Just change your version of @vue/cli-service to latest version:

image

then run: yarn install

Should work

Worked for me without any hassle, i just had to use npm install. Thank you. 👍

Theandev commented 8 months ago

image

It is still not working, using npm install. Everyone has any idea please kindly help. Thanks