No available storage method found" error when implementing custom storage driver

Description

I’m trying to implement a custom storage driver for JupyterLite to interface with a Rails backend. However, I’m encountering a “No available storage method found” error when attempting to use this custom driver.

Steps to Reproduce

  1. Created a custom storage driver implementing the Contents.IDrive interface
  2. Registered the custom driver with JupyterLite
  3. Configured jupyter-lite.json to use the custom driver
  4. Loaded JupyterLite in the browser

Expected Behavior

JupyterLite should recognize and use the custom storage driver for content management.

Actual Behavior

JupyterLite throws a “No available storage method found” error and fails to initialize properly.

Configuration

Here’s my jupyter-lite.json configuration:
“jupyter-config-data”: {
“appPlugins”: [
{ “id”: “rails-storage-plugin”, “url”: “./plugins/custom-storage-driver.js” }
],
“contentsStorageDrivers”: [“customStorage”],
“contentsStorageName”: “customStorage”,
}