melowntech / workshop

Workshop of Melown 3D stack
10 stars 3 forks source link

Browser error #21

Open mghildiy opened 5 years ago

mghildiy commented 5 years ago

Hi,

I tried to make an application based on: http://vtsdocs.melown.com/en/latest/tutorials/sample-app.html#

I made use of node.

I get error on browser: Uncaught SyntaxError: Unexpected token <

image

What am I missing here?

davidmtech commented 5 years ago

Hello, I don not know you Node.js setup, but keep in mind that sample-app.js is not Node.js app. It has to be accompanied with HTML code also. Just proceed as with with standard HTML web page and use VTS-Browser-JS as a library and place additional JS code in to the HTML code to make it running. Take HTML code in following link as an inspiration:

http://vtsdocs.melown.com/en/latest/_downloads/sample-app.html

or start with simple examples in jsfiddle https://github.com/Melown/vts-browser-js/wiki/Examples

or try same of our examples in github https://github.com/Melown/vts-browser-js

there is a link for version with compiled libraries, which is more easier to setup https://github.com/Melown/vts-browser-js/releases/download/v2.15.10/compiled-libraries-and-demos.zip