vue-cli 3.0
vue ui
打开图形化界面,但是界面一直loading
报错如下
Unhandled GraphQL subscription error
Uncaught (in promise) Error: Network error: Cannot use GraphQLSchema "[object Object]" from another module or realm.
Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.
我把node_modules删了重装后还是有这个错误,但是不影响其他使用。
看上去好像是装了两个版本的 graphql。但是这个貌似是 vue-cli 3.0 自带的依赖,我的 package.json 中并没有这个依赖。
楼主,你好~
检查下你自己的 node 版本。官方要求如下:
另外,如果满足了,确认下
vue-cli
的版本是多少?本机上如果安装了yarn
,可以试试yarn add @vue/cli global
如有帮助,麻烦点击下采纳,谢谢~