Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-5502

Migration from 1.19.2 to 1.30.1 causes Compass to error on load

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: State Management, Tech debt
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Not Needed

      Reported OS: windows

      Slack thread:
      https://mongodb.slack.com/archives/C0U7K0MC3/p1644418694099459

      Looks like what's probably happening is that in the 1.20 migration step the `storage mixin` is using the `localforage` package which throws an uncaught exception. We might be able to fix what causes localforage to throw the `No available storage method found` expection or just catch the exception so Compass is still usable without performing a full migration.
      https://github.com/localForage/localForage/blob/master/src/localforage.js#L336
      https://github.com/mongodb-js/compass/blob/main/packages/storage-mixin/lib/backends/local.js#L28
      https://github.com/mongodb-js/compass/blob/main/packages/compass/src/app/migrations/1.20.0-beta.0.js

      Debug screenshots attached

        1. image (2).png
          image (2).png
          34 kB
        2. Image from iOS.jpg
          Image from iOS.jpg
          150 kB

            Assignee:
            Unassigned Unassigned
            Reporter:
            rhys.howell@mongodb.com Rhys Howell
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: