Open plus- opened 10 years ago
This does not appear to be a supported use case. Consider adding proxy routes to your server-side application to provide the necessary data to the browser.
Also looking to use this sdk with Browserify, and currently getting the same node_moduels
error.
Is there any way to shim or modify it to work with Browserify?
This is a server side library. I don't think the author intended it to be used in browsers - forgive me if I'm wrong.
Well, I'm using it in a node-webkit app. Not explicitly being run in the browser.
The fix will probably be to change this:
version = require(require('path').resolve(__dirname, 'package.json')).version
To this:
version = require('./package.json').version
I've made this change in this commit. It will end up in the next release.
Is this suppose to work out of the box?
I'd like to replace my fb sdk async call with this & browserify, but I get a node_modules error on the client side.
I'm just asking before digging further.