[Solved]Fix the errors | SoloLearn: Learn to code for FREE!

+2

[Solved]Fix the errors

Fix the errors please Console Uncaught ReferenceError: THREE is not defined Line: 6 Uncaught ReferenceError: Cannot access 'camera Target' before initialization Line: 25 https://code.sololearn.com/WfPiNFH6xqWs/?ref=app

9/21/2020 12:04:44 PM

Aditya

5 Answers

New Answer

+2

The script in the js tab is executed before the Three.js scripts are loaded. So at line 6, you are trying to access Three.js before it is loaded. I suggest moving the 3 Three.js scripts into the head of the document. There Three.js will be loaded before the script in the js tab. This will take care of the second error also. https://code.sololearn.com/W6VoG5nch5EQ/#html

+5

What is your problem/error and what are you trying to achieve? Then we may be happy to help you

+4

Do you have an idea of where the errors may be coming from? Cat🐈 It will be better to point us to a particular area of the code than to leave us to have to go through the whole code to help you!

+3

Thanks:)

+1

You are welcome. Keep up the good work.