diff --git a/packages/typescript-vfs/src/index.ts b/packages/typescript-vfs/src/index.ts index 453dcf9b4a98..047ac676d3c5 100755 --- a/packages/typescript-vfs/src/index.ts +++ b/packages/typescript-vfs/src/index.ts @@ -295,7 +295,7 @@ export const createDefaultMapFromCDN = ( function cached() { const storelike = storer || localStorage - const keys = Object.keys(localStorage) + const keys = Object.keys(storelike) keys.forEach(key => { // Remove anything which isn't from this version if (key.startsWith("ts-lib-") && !key.startsWith("ts-lib-" + version)) {