当我引入Pinia 定义的store 时会报错 #1637
Unanswered
zhongjiaguo001
asked this question in
Help and Questions
Replies: 2 comments
-
经过排查后发现,是在modules文件夹这个命名下的文件使用就会产生错误,在其他命名下就可以正常使用,我该如何解决呢? |
Beta Was this translation helpful? Give feedback.
0 replies
-
再次排查后发现,是在pinia定义的store中使用了 import 语句, 如果我不使用 import 语句就可以正常使用store |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Reproduction
none
Steps to reproduce the bug
1、定义一个store
2、在.vue文件中引入store
Expected behavior
能够正常使用
Actual behavior
会产生报错
Additional information
Beta Was this translation helpful? Give feedback.
All reactions