I am not quite clear what exactly you are doing and in which constellation you are confronted with error messages.
As a beginner, it makes sense to start from a working example and then modify it.
Have a look at the examples in the collection.
See * discourse.threejs.hofk.de
You can also try the beginner example piece by piece.