mapActions doesn't work in production build #2117
Unanswered
darxsideblues
asked this question in
Help and Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
So, I encountered some error in production build, these are steps I followed:
npm init vue@latest
(choose router, pinia, no tests and linter, javascript)added this code:
and with
npm run dev
it works fine, but when I donpm run build
I got error like:when I remove mapActions and use function instead it works
I didn't modify any of files, only HelloWorld.vue component, so my vite.config.js is default,
maybe I'm missing something?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions