Skip to content

location is not available in Node.js environment #218

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

Closed
yosider opened this issue Jan 25, 2025 · 4 comments · Fixed by #219
Closed

location is not available in Node.js environment #218

yosider opened this issue Jan 25, 2025 · 4 comments · Fixed by #219
Assignees

Comments

@yosider
Copy link

yosider commented Jan 25, 2025

Node.js環境からwebsocketを使おうとしています。
locationを参照している箇所で、ブラウザ環境でないため存在せずエラーになりました。
https://github.com/takker99/scrapbox-userscript-std/blob/main/websocket/findMetadata.ts#L64
回避することは可能でしょうか?

@takker99
Copy link
Owner

I'm going to inject location out of the findMetadata so it will be fixed.

@takker99
Copy link
Owner

@yosider Please use v0.25.6 and check whether this issue is fixed.

@yosider
Copy link
Author

yosider commented Jan 27, 2025

@takker99 Thank you for your quick response. It worked perfectly!

@takker99
Copy link
Owner

Thanks a lot!

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

Successfully merging a pull request may close this issue.

2 participants