Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法获取apollo配置 #11

Open
liuguangshun opened this issue Jul 29, 2024 · 1 comment
Open

无法获取apollo配置 #11

liuguangshun opened this issue Jul 29, 2024 · 1 comment

Comments

@liuguangshun
Copy link

liuguangshun commented Jul 29, 2024

安装 "apollo-node-client": "^1.4.3",无法正常获取apollo配置, "apollo-node-client"已安装,程序里面有./node_modules/apollo-node-client/dist/lib/access文件,具体错误信息:
Error: Cannot find module './lib/access'
at webpackEmptyContext (eval at ./node_modules/apollo-node-client/dist sync recursive (testx.js:10:1), :2:10)
at eval (index.js:29:18)
at eval (index.js:17:17)
at eval (index.js:26:3)
at ./node_modules/apollo-node-client/dist/index.js (testx.js:21:1)
at webpack_require (app.js:854:30)
at fn (app.js:151:20)
at eval (cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/testx.vue?vue&type=script&lang=ts:32:5)
at ./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/testx.vue?vue&type=script&lang=ts (testx.js:709:1)
at webpack_require (app.js:854:30)

@zhangxh1023
Copy link
Owner

zhangxh1023 commented Oct 18, 2024

这是在前端项目中引用吗,目前是只支持在Node.js中使用
虽然看起来报错应该是其他的原因。。。可能需要一个可以复现的最小demo才能确定

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants