-
Notifications
You must be signed in to change notification settings - Fork 5
Example using the lbclient.js in polymer #3
Comments
Hello, sorry for the delay. You are right, this information is missing in README. There is a task in gulp, called <script>
var app = require('lbclient');
var User = app.models.User;
User.login({
email: 'test@example.com',
password: '12345'
}, function(err, res) {
if (err) {
console.error('Login failed: ', err);
} else {
console.log('Logged in.');
}
});
</script> You can have the docs regarding this here: |
Yeah, i found that later in the docs. But somewhere in the 100,000+ lines of code there are errors. I think it was |
Strange, for me it is working, Did you tried to clean the bundle and create again? |
Look at testing-lbclient for an working example here |
@nigeltiany Maybe it's related to the browserify version, or even node.js version. Are you trying with the latest versions of these packages? |
I have updated all packages |
@nigeltiany , I tested here with exactly same versions, no problems 😕 |
BTW the issue with the size of bundle is already know, the strongloop team is working on it, for now wrapping whole loopback into the bundle is the only workaround. strongloop/loopback#989 |
I suggest you to open an issue in loopback repo about browserify loopback and your specific error. I guess this occurs only in Windows, but I am not sure. |
I'll close this for now, fell free to re-open if you have any updates on this. |
How can the browserified files(The loopback Isomer) be used in a polymer component.
@klarkc
The text was updated successfully, but these errors were encountered: