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

pnpm monitor报错 #202

Open
1bananachicken opened this issue Dec 25, 2023 · 3 comments
Open

pnpm monitor报错 #202

1bananachicken opened this issue Dec 25, 2023 · 3 comments

Comments

@1bananachicken
Copy link

globalThis.navigator = JSDOM.window.navigator;
删除这一行代码就能正常使用了,但不知道会不会有什么影响

@cxOrz
Copy link
Owner

cxOrz commented Dec 26, 2023

#199

@cxOrz
Copy link
Owner

cxOrz commented Dec 26, 2023

需验证低版本Node,删除这一行,是否会有影响。
我印象中,不加这一行会出错

@cxOrz
Copy link
Owner

cxOrz commented Dec 26, 2023

Node 21 似乎实现了 navigator 对象,回头可以加个判断,仅在 Node 版本低于 21 时,执行这一行。

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