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

程序设置中没有显示地图这一项。 #213

Closed
shmilyabyy opened this issue May 17, 2024 · 3 comments
Closed

程序设置中没有显示地图这一项。 #213

shmilyabyy opened this issue May 17, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@shmilyabyy
Copy link

Environment:

  • Operating System: debian
  • Browser (if applicable): Edge
  • Node Version:20.13.1
  • Vite Version:
  • Vue3 Version:
  • Docker Version (if applicable):26.1.1
  • Deployment Method (Vercel/Docker/Node):Docker
  • Environment Variables (without sensitive info): BING_MAP_API_KEY, ALLOWED_DOMAINS
  • Any other relevant software versions:

Description:

程序设置中没有显示地图,无法开启地图。BING_MAP_API_KEY和ALLOWED_DOMAINS环境变量都已经设置了,api直接复制的,ALLOWED_DOMAINS是vps的公网ip。
image

Terminal Logs (include any error messages or stack traces):

> myip@3.0.0 start
> concurrently "npm run start-frontend" "npm run start-backend"

[0] 
[0] > myip@3.0.0 start-frontend
[0] > node frontend-server.js
[0] 
[1] 
[1] > myip@3.0.0 start-backend
[1] > node backend-server.js
[1] 
[1] node:internal/modules/esm/resolve:265
[1]     throw new ERR_MODULE_NOT_FOUND(
[1]           ^
[1] 
[1] Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/app/common/referer-check.js' imported from /app/api/map.js
[1]     at finalizeResolution (node:internal/modules/esm/resolve:265:11)
[1]     at moduleResolve (node:internal/modules/esm/resolve:933:10)
[1]     at defaultResolve (node:internal/modules/esm/resolve:1157:11)
[1]     at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12)
[1]     at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25)
[1]     at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:227:38)
[1]     at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:87:39)
[1]     at link (node:internal/modules/esm/module_job:86:36) {
[1]   code: 'ERR_MODULE_NOT_FOUND',
[1]   url: 'file:///app/common/referer-check.js'
[1] }
[1] 
[1] Node.js v20.13.1
[1] npm run start-backend exited with code 1
[0] Static file server running on port http://localhost:18966
@shmilyabyy shmilyabyy added the bug Something isn't working label May 17, 2024
@jason5ng32 jason5ng32 self-assigned this May 17, 2024
@jason5ng32
Copy link
Owner

It should be fixed now. #214

@shmilyabyy
Copy link
Author

还是没有地图开关,这是为什么。
image
image
没有报错了但是还是没有地图开关。
我api是bing的api没有错误,alloweddomain是填写的vps的公网ip。

@shmilyabyy
Copy link
Author

可以了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants