Hi everyone
I’m a beginner .On the course I suppose to add this file on my html file
but when I download the threejs file this is what I have
Somebody can help me which file to choose ?
thanks by advance.
Hi everyone
I’m a beginner .On the course I suppose to add this file on my html file
but when I download the threejs file this is what I have
Somebody can help me which file to choose ?
thanks by advance.
The answer is probably three.js
or three.module.js
, HOWEVER it sounds like your course was written around an older version of three.js. If you know what version that is, I would recommend using the dropdown on GitHub …
… to select the same three.js version as your course expects. Otherwise you may find that the filenames are not the only differences.
HI guy
for your message when you write three.js I think you talk about the first one.is not threejs file is a three.cjs file and I have the error message in the console :
Ah I see. The latest version of three.js does not have a build that works in the same way as your older course seems to assume. You’ll need to check the installation guide for how to install modern versions of three.js, or work out which version of three.js your course uses. What course do you mean? If you need to complete that specific course then I’d recommend using an older three.js version to avoid problems. Otherwise you may want to find a more recently updated course.
this course https://threejs-journey.com/
<version>
in the URLs with 0.176.0
or some other versionTHREE
you must have import * as THREE from 'three'
at the top of the file.That said, the course suggests installing vite and three.js from npm, not by copying files or using a CDN ..
… unless you’re on a different lesson, so you may want to try that approach for later lessons.
three.js journey is a modern course so I expect it should work well with the latest version of three.js, but I’m surprised if the text “Copy the three.min.js
file to your project” is part of the course … that seems different from the installation process it recommends in the link above.