Replies: 1 comment 5 replies
-
I think you're going at it the wrong way. You don't want to add a variable outside of the VueX state manager's scope and importing it directly into a Vue component is not going to work either. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi again!
Firstly, I rode your last message when you have to focus on other tasks, so, look at this issue only if you have time. I totally know it is not the more important.
There is some time I am totally blocked about a single problem: I cannot import a variable from players.js. I searched since the last time (3 weeks ago) an explanation in various forums, and no one can find an explanation. Theoretically, what I did is supposed to work. So, I think: maybe the issue is not only a python or Vue.js issue, maybe there is some specific point in your project which explains what I obtain, maybe you can get an idea of why there is a problem.
I added an export in players.js:
Then, I tried to import this boolean in TownSquare.vue
Trying to run it, there is no print of isNotesOpen's value. But, if I change it to print instead the value of a variable created in TownSquare.vue, this value is printed without problem. That means the issue is specifically on the import (or maybe in the export).
Once again, before to write this, I rode so many documentation, I open so many discussions in so many forums, no one seems to know where the problem is.
Since you know this code, do you have any idea of the problem?
Thanks in advance for answer, even negative one.
Beta Was this translation helpful? Give feedback.
All reactions