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

Requiring 'faunadb' from the package installed from npm fails #75

Closed
eaceaser opened this issue Mar 18, 2016 · 1 comment
Closed

Requiring 'faunadb' from the package installed from npm fails #75

eaceaser opened this issue Mar 18, 2016 · 1 comment

Comments

@eaceaser
Copy link
Contributor

Depending on faunadb as such:

  "dependencies": {
    "faunadb": "git+ssh://git@github.com/faunadb/faunadb-js.git",
  }

then using it:

var faunadb = require('faunadb');

fails:

module.js:341
    throw err;
    ^

Error: Cannot find module './lib/model/Codec'
    at Function.Module._resolveFilename (module.js:339:15)
    at Function.Module._load (module.js:290:25)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at /home/eac/fauna/consulting/breezeworks/load/node_modules/faunadb/index.js:7:16
    at Array.forEach (native)
    at Object.<anonymous> (/home/eac/fauna/consulting/breezeworks/load/node_modules/faunadb/index.js:6:15)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)

The relative paths here are problematic.

@eaceaser
Copy link
Contributor Author

oh wait. this might be due to the fact that we require babel compilation.

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

1 participant