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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't require Bankai/http #470

Open
YerkoPalma opened this issue Apr 23, 2018 · 4 comments
Open

Can't require Bankai/http #470

YerkoPalma opened this issue Apr 23, 2018 · 4 comments

Comments

@YerkoPalma
Copy link
Member

This a 馃悰 bug report

Expected Behavior

This should work (as the readme say)

var bankaiHttp = require('bankai/http')

Current Behavior

Error: Cannot find module 'bankai/http'
    at Function.Module._resolveFilename (module.js:557:15)
    at Function.Module._load (module.js:484:25)
    at Module.require (module.js:606:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/yerko/.nvm/versions/node/v9.7.1/lib/node_modules/mtalk/bin.js:11:14)
    at Module._compile (module.js:662:30)
    at Object.Module._extensions..js (module.js:673:10)
    at Module.load (module.js:575:32)
    at tryModuleLoad (module.js:515:12)
    at Function.Module._load (module.js:507:3)

Possible Solution

Add a files section to package.json.

I think that adding index.js and bin.js would be enough

@goto-bus-stop
Copy link
Member

Wuuh. It's in the package though! https://unpkg.com/bankai@9.11.1/

@goto-bus-stop
Copy link
Member

@YerkoPalma is this still a thing? I don't understand what could cause it since the http.js file got published fine

@YerkoPalma
Copy link
Member Author

Last time I checked was still an issue. Let me explain my context.
I have a package here (https://github.com/YerkoPalma/mtalk) where I have bankai as a dependency and where I require bankai/http, and it works fine. But when I install that package (npm i -g mtalk) I get the error posted. Migth be my error, just don't know why (I guess that if you install the package you'll see the same error)

@goto-bus-stop
Copy link
Member

hmm no that works fine for me 馃槚

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