Troubleshooting

Running into any error or problem? This guide might help you.

To avoid errors related to the installation, please read the Introduction page first.

Errors

✅ Patched on v2.12.0 TypeError: Cannot read properties of undefined (reading 'dataFile') This error is present in every version of the package until v2.9.2 and in version v2.11.0 and is caused by not providing any parameter when creating an instance of the database.

Temporary fix:

- const db = new SimplDB();
+ const db = new SimplDB({});

✅ Patched on v2.12.1 Cannot assign to '<property>' because it is a read-only property. This error is present in version v2.12.0.

Temporary fix:

- Users.update(
-   u => u.coins += 500,
-   u => u.id === 12345
- );
+ Users.update(
+   u => (<Modifiable<User>> u).coins += 500,
+   u => u.id === 12345
+ );

Last updated