I built the VueJs Demo7 (Metornic metronic_v8.0.31) app with npm install --force. If I do with npm install, it gives me a big list of dependency errors mostly for the Vue version. I use 3.2.29 while the project has a dependency of 3.1.19. Somehow the project runs with --force option. But when I try to sign-in with the demo username and password, I see runtime errors in dev console. And the logic request fails with HTTP 405 Method Not Allowed error from the server at the below URL.
https://preview.keenthemes.com/metronic8/laravel/api/login?email=admin@demo.com&password=demo
And then the JS fails with the below error:
Uncaught (in promise) TypeError: can't convert undefined to object
onSubmitLogin SignIn.vue:61
promise callback*onSubmitLogin/< SignIn.vue:60
setTimeout handler*onSubmitLogin SignIn.vue:42
submissionHandler vee-validate.esm.js:2119
promise callback*submissionHandler vee-validate.esm.js:2117
callWithErrorHandling runtime-core.esm-bundler.js:155
callWithAsyncErrorHandling runtime-core.esm-bundler.js:164
invoker runtime-dom.esm-bundler.js:366
addEventListener runtime-dom.esm-bundler.js:316
patchEvent runtime-dom.esm-bundler.js:334
patchProp runtime-dom.esm-bundler.js:398
mountElement runtime-core.esm-bundler.js:4603
processElement runtime-core.esm-bundler.js:4566
patch runtime-core.esm-bundler.js:4486
componentUpdateFn runtime-core.esm-bundler.js:5037
run reactivity.esm-bundler.js:160
setupRenderEffect runtime-core.esm-bundler.js:5156
mountComponent runtime-core.esm-bundler.js:4939
processComponent runtime-core.esm-bundler.js:4897
patch runtime-core.esm-bundler.js:4489
mountChildren runtime-core.esm-bundler.js:4685
mountElement runtime-core.esm-bundler.js:4594
processElement runtime-core.esm-bundler.js:4566
patch runtime-core.esm-bundler.js:4486
mountChildren runtime-core.esm-bundler.js:4685
processFragment runtime-core.esm-bundler.js:4856
patch runtime-core.esm-bundler.js:4482
componentUpdateFn runtime-core.esm-bundler.js:5037
run reactivity.esm-bundler.js:160
Hi,
These errors are already fixed in the latest Metronic v8.0.35. You can just update to this version.
To fix the installation error you can update your dependencies list by referring to package.json in the latest Metronic version.
We have updated some endpoints on our API so authentication might not work in the older versions, also to fix this you can update your demo1/src/store/modules/AuthModule.ts by referring to demo1/src/store/modules/AuthModule.ts in the latest Metronic version.
thank you. that worked