Timeline for 404 Error (File not found) for three.module.js
Current License: CC BY-SA 4.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 17, 2020 at 15:11 | answer | added | Tejas Katakdhond | timeline score: 1 | |
Jan 23, 2020 at 16:11 | comment | added | Ghoul Fool | @Zydnar I see it now! I see where I've gone wrong! D'oh :) | |
Jan 22, 2020 at 12:25 | comment | added | Zydnar |
@GhoulFool how you run the index.HTML http://localhost:8000/Desktop/Skeletor/MYPROJECT/ suggest ./ does NOT mean it's root of MYPROJECT
|
|
Jan 22, 2020 at 8:57 | comment | added | Ghoul Fool | @Zydnar my reporting of the folder structure was incorrect. I've since corrected it thanks to this question. | |
Jan 22, 2020 at 8:55 | history | edited | Ghoul Fool | CC BY-SA 4.0 |
adjusted directory structure text
|
Jan 22, 2020 at 7:48 | comment | added | adatzer |
OrbitControls and the loaders too as modules, assume a specific folder structure in order themselves to import from three: ../../../build/three.module.js (see github.com/mrdoob/three.js/blob/dev/examples/jsm/controls/…). So you either change your dir structure to match that, or change the source code of all the modules to compensate
|
|
Jan 21, 2020 at 21:42 | comment | added | Ghoul Fool |
Just using python 2.7 with python -m SimpleHTTPServer
|
|
Jan 21, 2020 at 20:19 | comment | added | M - |
What are you using to serve your files in localhost ? It might be an issue with the config file, maybe pointing one folder too high.
|
|
Jan 21, 2020 at 20:19 | comment | added | Mugen87 |
@Zydnar In the official repository, the build files are not located in the jsm directory.
|
|
Jan 21, 2020 at 16:21 | comment | added | Zydnar |
It seems you missed jsm before build so it should be import * as THREE from './jsm/build/three.module.js';
|
|
Jan 21, 2020 at 16:15 | history | edited | Legionar | CC BY-SA 4.0 |
added 84 characters in body
|
Jan 21, 2020 at 16:12 | history | edited | Ghoul Fool | CC BY-SA 4.0 |
added folder structure
|
Jan 21, 2020 at 14:38 | comment | added | Mugen87 | Can you please share your directory structure? It's important to know where your HTML file is located and the respective JS files. | |
Jan 21, 2020 at 14:06 | history | asked | Ghoul Fool | CC BY-SA 4.0 |