localForage / localForage/localForage
.getItem() failing since tslib >= 1.12.0 upgrade
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 25.8k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
An issue has cropped up in my project whereby trying to use the getItem method blows up at this point: https://github.com/localForage/localForage/blob/master/dist/localforage.js#L920
This seems to be related to the tslib 1.12.0 and is also an issue in tslib 2.0.0
here's the error I get:

my current workaround is to downgrade to tslib 1.11.2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at dist/localforage.js around line 920 and reproduce the getItem failure with tslib 1.12.0 or 2.0.0, comparing it with the working tslib 1.11.2 setup. Done means getItem no longer throws after the dependency upgrade while preserving the existing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100