0

I have made a simple game in three.js and want to be able to save a high score to a database, but anytime I try to use a database module, more specifically, the replit database, all of the three.js code stops working.

I have tried to import the replit database module in the file, but it doesn't work, anytime I try and reference another file from the three.js script, all of it stops working.

this is how I have three.js imported

import * as THREE from "https://cdn.skypack.dev/[email protected]";

1
  • Are you mixing frontend and backend code perhaps? Refactor your question and post a error message and specify your problem. Your post is to vague to give you a answer.
    – Marc
    Commented Sep 21, 2023 at 15:29

0