Realm Web Error: Class extends value # is not a constructor or null in Svelte App

New here & to MongoDb in general, so not sure whether I should be replying to this post or creating a new one, but I have a similar problem.

Followed the Docs to set up Web SDK and when importing realm-web into my Svelte project using:
import * as Realm from 'realm-web'
I have the following error :

Uncaught TypeError: Class extends value # is not a constructor or null

originating from: bundle.dom.es.js:1664:26

Same Error using from CDN … origination from bundle.iife.js:9160:30 this time

Not sure exactly why, but was trying to integrate into an existing Svelte app that was still using Rollup, switched over to Vite now and the error no longer appears.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.