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

No support for require in node #152

Open
diminator opened this issue Apr 3, 2017 · 2 comments
Open

No support for require in node #152

diminator opened this issue Apr 3, 2017 · 2 comments

Comments

@diminator
Copy link
Contributor

> require('js-utility-belt/lib')
ReferenceError: document is not defined
    at Object.<anonymous> (/home/dimi/code_ascribe/kyber/drivers/javascript/node_modules/js-utility-b
elt/lib/feature_detection/drag_and_drop_available.js:16:43)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/dimi/code_ascribe/kyber/drivers/javascript/node_modules/js-utility-b
elt/lib/feature_detection/index.js:8:32)
    at Module._compile (module.js:541:32)
@sohkai
Copy link
Contributor

sohkai commented Sep 15, 2017

@diminator In case you're still having trouble with this, this is directly related to #14. The issue is that we're not omitting certain parts of this library that don't make sense for a node build (e.g. the drag and drop module).

@diminator
Copy link
Contributor Author

Thanks @sohkai, currently we plucked only the necessary files and made them part of the js-driver

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