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

[Error occurs in VSCode extension authoring] Navigator is not defined #1526

Closed
nonoroazoro opened this issue Dec 11, 2019 · 3 comments
Closed

Comments

@nonoroazoro
Copy link

Version: [email protected]~16.35.0

I've been using rest.js to access GitHub in my VSCode extension Syncing, but it seems something is broken since version 16.28.7. Here's the error message from VSCode dev console:

图片

Could you please help? Thanks.

@nonoroazoro
Copy link
Author

Fixed by adding the following alias in Webpack configuration as always.

alias: {
    "universal-user-agent$": "universal-user-agent/dist-node/index.js
}

@tanvibhakta
Copy link

tanvibhakta commented Dec 12, 2019

For anyone coming across this in the future, this might be helpful: gr2m/universal-user-agent#23

@gr2m
Copy link
Contributor

gr2m commented Dec 19, 2019

Thanks @tanvibhakta. Yes, the problem should be resolved via gr2m/universal-user-agent#23. I'm glad you found a workaround for the time being

@gr2m gr2m closed this as completed Dec 19, 2019
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

3 participants