-
Notifications
You must be signed in to change notification settings - Fork 272
Webpack compatibility #16
Comments
Greetings! Webpack isn't currently supported, but it's something we would very much like to do. |
This workaround helps serverless-heaven/serverless-webpack#342 |
can we use this package on react-native? right now we are using fetch directly like this https://github.com/innFactory/react-native-dialogflow/blob/master/js/Dialogflow_V2.js#L89 it'd be cool to have full support to react and react native |
I got the same issue to use // example
import { google } from "googleapis";
import axios from "axios";
const url = "https://pubsub.googleapis.com/v1/projects/${project_name}/topics/${topic_name}:publish";
async function main() {
const token = await google.auth.getAccessToken();
const data = { messages: [ { data: new Buffer("hogehoge").toString("base64") }]}
const config = {
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${token}`,
},
};
return await axios.post(url, data, config);
}
main(); |
Is there any work around or fix available to use dialogflow in reactjs? |
@ragu-swaminathan, we recently removed our dependency on This continues to be something we are working towards, but I don't believe there are any workarounds just yet. |
@bcoe @JustinBeckwith is there a tracking issue we can ask users to subscribe to? Seems like this is applicable to all the nodejs clients. |
@callmehiphop if one doesn't exist, let's create a tracking issue here: https://github.com/googleapis/google-cloud-node I agree it would be great to eventually provide a recipe for running in the browser. |
googleapis/google-cloud-node#2933 has been opened! |
I am using Webpack to bundle my code for the later export to my server-less architecture. Unfortunately Google-Cloud does not seem to work with the Webpack workflow? Executing the from webpack produced bundle yields the error:
Do to my research this is a problem with some Google Cloud dependencies:
googleapis/google-cloud-node#1821
grpc/grpc#11435
and the source probably is the node-pre-gyp module:
mapbox/node-pre-gyp#308
Environment details
Thanks!
The text was updated successfully, but these errors were encountered: