Comments (7)
thx for reminding!
I have installed by this way:
npm i git+https://github.com/mikeal/r2.git
from r2.
all fixed now :)
from r2.
I'm not sure that this has to do with r2, maybe you can provide some more context.
This worked fine for me, natively with node 8 and also babeled:
const r2 = require('./');
const comms = {
requestData: async function(method, url, requestBody) {
return await r2[method](url, requestBody)
}
}
comms.requestData('get', 'http://localhost:8080');
from r2.
I just hit this same issue and it's because you installed the wrong module. The r2
library on NPM is for a sales force capable single page web app composition module: https://www.npmjs.com/package/r2
@mikeal I know the package.json
file specifies name: "r2"
but I think issue #7 can also address this problem with name conflicts on the NPM registry as well.
from r2.
@g8up Did that, now running into
Error: Cannot find module 'caseless'
from r2.
@aganglada there's a PR open for the fix for that... caseless isn't marked as dependency but it should be. Probably just install caseless manually or wait for #8 to be merged.
from r2.
Alright, that what I did for now :) Thanks!
from r2.
Related Issues (20)
- A strange behavior of .json HOT 5
- Issues with binary files HOT 12
- Enable promise dependency injection (just like node-fetch) HOT 4
- No package description HOT 3
- r2 doesn't have formData post?
- Encoding parameter HOT 1
- [TS] r2 typescript declaration file HOT 4
- An in-range update of semantic-release is breaking the build 🚨 HOT 2
- Assuming all JSON payloads are application/json is wrong HOT 1
- String stream support
- An in-range update of semantic-release is breaking the build 🚨 HOT 2
- r2.post not working vs fetch HOT 1
- The automated release is failing 🚨 HOT 5
- Ilegal http header
- An in-range update of browserify is breaking the build 🚨 HOT 2
- Uri with ':' inside it are misinterpreted.
- DeprecationWarning: Buffer() is deprecated due to security and usability issues
- Responsible disclosure policy
- Vulnerability - Upgrade node-fetch version from 2.6.5 to 2.6.7, 3.1.1
- Potential security vulnerabili
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from r2.