HubPress / hubpress.io

A web application to build your blog on GitHub
MIT License
2.81k stars 2.63k forks source link

Error on synchronize #537

Closed peter-lawrey closed 4 years ago

peter-lawrey commented 6 years ago

I have updated to 0.9.1

After posting an article, the "Posts" page reported 0 posts. On clicking refresh I get

app.3e89e3d9c935e845e2fd.js:1 Uncaught (in promise) TypeError: t.replace is not a function at h (https://vanilla-java.github.io/_nuxt/app.3e89e3d9c935e845e2fd.js:1:143861) at https://vanilla-java.github.io/_nuxt/app.3e89e3d9c935e845e2fd.js:1:142090 at Array.map () at https://vanilla-java.github.io/_nuxt/app.3e89e3d9c935e845e2fd.js:1:142059 at l (https://vanilla-java.github.io/_nuxt/vendor.099e66f2e693b444d03c.js:2:211437) at S._settlePromiseFromHandler (https://vanilla-java.github.io/_nuxt/vendor.099e66f2e693b444d03c.js:2:184806) at S._settlePromise (https://vanilla-java.github.io/_nuxt/vendor.099e66f2e693b444d03c.js:2:185606) at S._settlePromiseCtx (https://vanilla-java.github.io/_nuxt/vendor.099e66f2e693b444d03c.js:2:186112) at https://vanilla-java.github.io/_nuxt/vendor.099e66f2e693b444d03c.js:2:141269 From previous event: at S.P [as _captureStackTrace] (https://vanilla-java.github.io/_nuxt/vendor.099e66f2e693b444d03c.js:2:154695) at S._then (https://vanilla-java.github.io/_nuxt/vendor.099e66f2e693b444d03c.js:2:180263) at S.then (https://vanilla-java.github.io/_nuxt/vendor.099e66f2e693b444d03c.js:2:178619) at Object.a [as synchronize] (https://vanilla-java.github.io/_nuxt/app.3e89e3d9c935e845e2fd.js:1:121409) at https://vanilla-java.github.io/_nuxt/app.3e89e3d9c935e845e2fd.js:1:33343

peter-lawrey commented 6 years ago

So now I can't remove the test post.

anthonny commented 6 years ago

If you refresh the page, and sync again, does the problem persist?

If the problem persist, you can run this command in your console:

(new (new lokiDb.getIndexedAdapter())('hubpress')).getDatabaseList(function(db) {lil.deleteDatabase(db, function(res) {console.log(res)})})

It will delete your browser database, then refresh your page and sync. it should be ok