@Kyle_Barnes Sorry about that - we are working on fixing this now. This a typescript issue at our end As a workaround for now, By removing the first line in node_modules/realm-web/dist/bundle.d.ts and install realm-network-transport the following TS script works:
import * as RealmWeb from "realm-web";
const app: RealmWeb.App = new RealmWeb.App({ id: "<my-app-id>" });
const credentials = RealmWeb.Credentials.anonymous();
app.logIn(credentials).then(user => {
console.log(`${user.id} is logged in`);
}).catch(err => {
console.error("Failed to log in", err);
});
I am super excited about Realm, but I’m a developer that mainly focused on line of business applications that are used in a desktop environment. It would be great if there was a session that covered Realm and Angular / React integration.
@Kyle_Barnes the original issue should be fixed now, as we just released Realm Web v0.3.0.
Again, sorry for the mixup on our part and thanks for reporting this.
For your the issue I can see that the bson dependency has an open issue, with the same error message. We’ll release a fix for this shortly.