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

ReferenceError: navigator is not defined #58

Closed
braco opened this issue Apr 11, 2015 · 6 comments
Closed

ReferenceError: navigator is not defined #58

braco opened this issue Apr 11, 2015 · 6 comments

Comments

@braco
Copy link

braco commented Apr 11, 2015

Getting this error in node after updating.

Seems to be loading xhr and barfing on this:

var msie = /(msie|trident)/i.test(navigator.userAgent);
@mzabriskie
Copy link
Member

What version did you update to/from? Also what does your require statement look like?

@mzabriskie
Copy link
Member

@braco ping

@mzabriskie
Copy link
Member

Closing due to lack of response. If you have any further trouble feel free to re-open.

@laander
Copy link

laander commented Jun 26, 2015

I'm having a related problem. When using axios in a library and bundling it together in my dist, I'm getting an error when resolving vertx in es6-promise (when run in node.js):

/Users/las/timekit-io/js-sdk/dist/timekit.js:1629
            lib$es6$promise$asap$$vertxNext(lib$es6$promise$asap$$flush);
            ^
TypeError: undefined is not a function

I'm using webpack myself for bundling and for debugging, I've tried ignoring vertx in my build:

plugins: [
  new webpack.IgnorePlugin(/vertx/)
]

This removes the above error, but instead i get:
[ReferenceError: navigator is not defined]

Using Axios v 0.5.4

@laander
Copy link

laander commented Jun 26, 2015

On a second revision, I dont think the vertx "problem" is related to this one. It just simply happened to be the first error thrown and therefore only one shown.

@aaayushsingh
Copy link

aaayushsingh commented Aug 28, 2018

did anyone happen to find a solution to this? I'm using this with webpack and keep getting navigator is undefined.

@axios axios locked and limited conversation to collaborators May 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants