+ 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

21st Sep 2020, 12:04 PM
Aditya Sonwane
Aditya Sonwane - avatar
5 Antworten
+ 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
21st Sep 2020, 1:31 PM
ODLNT
ODLNT - avatar
+ 5
What is your problem/error and what are you trying to achieve? Then we may be happy to help you
21st Sep 2020, 12:21 PM
Galaxy-Coding (inactive)
Galaxy-Coding (inactive) - avatar
+ 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!
21st Sep 2020, 12:14 PM
Vachila64☕
Vachila64☕ - avatar
+ 3
Thanks:)
21st Sep 2020, 1:35 PM
Aditya Sonwane
Aditya Sonwane - avatar
+ 1
You are welcome. Keep up the good work.
21st Sep 2020, 1:43 PM
ODLNT
ODLNT - avatar