Multiple 'You are running Vue in development mode.' & $attrs is readonly. / $listeners is readonly #10144
Unanswered
ccoplestone
asked this question in
Help/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.
-
Hi all,
Odd one here relating to Vue 2, I've had this issue once or twice before and solved it by finding the culprit that was importing the other instance/version of Vue to remove the $attrs/$listeners warnings.
I've since created multiple Docker containers and moved areas of my application into them (frontend/mysql/php) etc, all using nginx. Since then, the 'You are running Vue in development mode.' message is appearing 3 times. Also, the $attrs/$listeners warnings seem to appear on a few different third-party packages, and don't appear on the original setup which leads me to believe this could be an issue with the container (this is isolated to the 'draggable' component, it mentions quite a few on different pages/Vue apps):
Solutions I've tried:
Tried moving the problem third-party packages into their own plugins
Tried ssh-ing into the frontend container to see if, at any point,
node_modules
had been included multiple times causing the issuesTried ensuring node and npm versions are identical to the old environment before I dockerized everything.
The only place I'm importing Vue is in the bootstrap.js file like
import Vue from 'vue';
. Nowhere else in my codebase am I importing Vue like that, nor am I including it from a CDN.The docker-compose.yml file for the frontend container:
Any potential pointers would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions