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

[bug?] global is not defined #453

Closed
roytan883 opened this issue Aug 17, 2019 · 1 comment
Closed

[bug?] global is not defined #453

roytan883 opened this issue Aug 17, 2019 · 1 comment

Comments

@roytan883
Copy link
Contributor

Hi, i try to use WatermelonDB in electron on windows. But I got this error:

Uncaught ReferenceError: global is not defined
    at index.js:15
    at Object../node_modules/@nozbe/watermelondb/utils/common/devMeasureTime/index.js (index.js:22)

after I modify this file:

node_modules/@nozbe/watermelondb/utils/common/devMeasureTime/index.js

//if (global && global.nativePerformanceNow) {
if ('undefined' !== typeof global && global.nativePerformanceNow) {

it works.

@radex
Copy link
Collaborator

radex commented Aug 19, 2019

@roytan883 great, send a pull request!

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