question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ES5 builds might be bugged

See original GitHub issue

Not sure if there is any consumer for the ES5 builds but due to a discussion at localforage I might be able to point out a bug in this build.

// es5/storage.js

...

var localforage_1 = require('localforage');

...

var Storage = (function () {
    function Storage() {
        var _this = this;
        this._db = localforage_1.default; // localforage_1 has no field named default.

...

Unless the require() or your bundler does some magic localforage_1 has no field named default

To verify this open a node REPL

var lf = require('localforage')
lf.default // should be undefined

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
mitsoecommented, Feb 21, 2017

Any timeline on when this will be fixed?

0reactions
mapicardcommented, Mar 9, 2020

Is @ionic/storage now working on stackblitz? I’m still having issues, Any example?

Read more comments on GitHub >

github_iconTop Results From Across the Web

1260366 – build/es5/defs-main.js not packaged - Red Hat Bugzilla
nodejs-defs-1.1.0-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report....
Read more >
(es5strict) Implement ES5 strict mode - Bugzilla@Mozilla
But implementing ES5 strict mode will shake all this up. ... Been working on bug 464750; I'll be better about timesharing and give...
Read more >
Bug with V8 and DEPRECATED ES5 publishing project
I'm using a script that gets data from Google SpreadSheets combined with some encryption and outputs it's results as plain text.
Read more >
Any ES5 implementations available? - ES Discuss
bugzilla.mozilla.org/show_bug.cgi?id=es5. You can get nightly builds with the patches for all the RESOLVED FIXED bugs on that meta-bug's dependency list ...
Read more >
Full Text Bug Listing - WebKit Bugzilla
ES5 adds a bind() method to Function.prototype as pioneered by the Prototype Library. Function.prototype.bind (thisArg [, arg1 [, arg2, …]]) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found