window.$vm works in dev, but not in build #13382
Unanswered
ssuess
asked this question in
CLI - PWA mode
Replies: 1 comment
-
Well, I worked around this by passing my object and function to the function that needed them, and that works in both dev and build. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In a current project I needed to access a data object via window.$vm reference. This works fine in my dev environment, but once I have built it, the reference no longer works, resulting in an error:
Uncaught TypeError: window.$vm is undefined
Is there a reason this would be and a workaround?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions