Objective: Start by importing the necessary modules...
Issue: When trying to import jsm files like OrbitControls.js using from 'three';
, an error occurs:
[Error] TypeError: Module specifier, 'three' does not start with "/", "./", or "../". promiseReactionJob
Various suggestions have been made, from manually copying files from node_modules and adjusting the path, to waiting for browsers to support relative paths. However, I would like to find a solution to use the tool on a regular server in the meantime...
What is the recommended approach for servers that are NOT based on Node.js?