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

Accessing non-existent property 'testRemoteBrowser' of module exports inside circular dependency #4149

Closed
2 tasks done
Zaid-maker opened this issue Dec 1, 2023 · 1 comment · Fixed by #4155
Closed
2 tasks done
Labels
area:monitor Everything related to monitors bug Something isn't working
Milestone

Comments

@Zaid-maker
Copy link
Contributor

⚠️ Please verify that this bug has NOT been raised before.

  • I checked and didn't find similar issue

🛡️ Security Policy

Description

So after the merge of #3904 this error is logged in the console when i start the server, i double check the installation and build the app as well! but still showing

image

use --trace-warnings flag to dig further in the error!

image

👟 Reproduction steps

Normally start the server with node server/server.js as usual

👀 Expected behavior

it should work as normal lol

😓 Actual Behavior

I pulled new changes and start the server and got this error.

🐻 Uptime-Kuma Version

2.0.0-dev

💻 Operating System and Arch

Windows 11 x64

🌐 Browser

Brave Browser

🐋 Docker Version

i dont use docker

🟩 NodeJS Version

18.18.2

📝 Relevant log output

(node:2920) Warning: Accessing non-existent property 'testRemoteBrowser' of module exports inside circular dependency
    at emitCircularRequireWarning (node:internal/modules/cjs/loader:836:11)
    at Object.get (node:internal/modules/cjs/loader:852:5)
    at Object.<anonymous> (E:\js-projects\uptime-kuma\server\remote-browser.js:2:9)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (E:\js-projects\uptime-kuma\server\monitor-types\real-browser-monitor-type.js:11:27)
@Zaid-maker Zaid-maker added the bug Something isn't working label Dec 1, 2023
@chakflying
Copy link
Collaborator

@adamhancock I'm guessing the static function test() in server\remote-browser.js isn't actually needed?

@CommanderStorm CommanderStorm added the area:monitor Everything related to monitors label Dec 1, 2023
@louislam louislam added this to the 2.0.0 milestone Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:monitor Everything related to monitors bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants