I am just starting with node.js, typescript and VS Code but I run into a problem when trying the examples given by typescript (for example the greeter.ts)
I can transpile using command line or VS Code menu, and run the product by clicking the html given in the example (this then loads the script.js file).
If I try to run / debug from inside VS Code an exception is caught on the (only) line "document.body.innerHTML = greeter.greet();" For some reason the "document" property does not exist (yet?).
The same happens with the raytracer example. Compiled and dragged into a browser is fine, started from VS Code isn't.
Any idea how to create a simple example that runs (debugs) in VS Code?
via Ralf
No comments:
Post a Comment