I get this error and Im not exactly sure what else needs to added to make it work, the current render.js file looks as follows:
import Realm from "realm";
and the error i receive when this is run is: Uncaught TypeError: Failed to resolve module specifier "realm". Relative references must start with either "/", "./", or "../".
Any help would be much appreciated thankyou!
I have tired installing both the realm and realm-web to see if there something wrong with the packages but no luck.
I did some researching. It seems problem is about how you import this package. Problem is not about MongoDB.
Source of the information. I copied from here: Website 1
<script src="scripts/maps/property-map.js" type="module"></script>import * as L from "https://cdn.jsdelivr.net/npm/[email protected]/dist/leaflet-src.esm.js";Here is a stack overflow questions asked before (possible duplicates): stack overflow question 1, stack overflow question 2