-
Notifications
You must be signed in to change notification settings - Fork 45
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
Window is not defined in browser code with Typescript #2304
Comments
The configuration that you provided specifies to run your project using You may update your configuration to run in the browser by changing your From the If that doesn't help, please provide your Wallaby diagnostics report. The Wallaby Diagnostics report is a simple JSON text report that contains some basic information about your project that is required to start troubleshooting most of Wallaby issues. To share the report:
Also, if you don't make progress, if possible please also describe how you created your project or else provide a sample repo of your project structure. This will allow us to provide you with a working wallaby configuration. |
Thank you for your help. setup(){
global.window = { navigator: { userAgent: 'node.js' } };
} The problem with Meteor is that there is code both for the browser and for the server |
While testing typescript code in browser, i get a
window is not defined
usingwindow
Here is my configuration
Here is my babelrc
Here is my tsconfig.json
Thank you
The text was updated successfully, but these errors were encountered: