Closed wc-matteo closed 6 years ago
I have no idea. Sorry.
Maybe I could help if you provide a code snippet.
Thanks. I'll try to recreate a minimal repro.
Discovered the cause:
Taking out "plugins": ["transform-runtime"]
from .babelrc
, makes production code have the double promise.
(I removed the transform runtime, because I'm using babel polyfill)
Glad you found it. 👍
While developing locally,
this.$store.dispatch('...')
returns a promise. When the code is in production, it returns a promise that returns a promise (I need to useawait await this.$store.dispatch('...')
). Any idea why that is?