You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just installed TSLab, in Anaconda, and everything was looking good, but when I tried to run the first program:
import * as tslab from 'tslab';
console.log('Hello, tslab!')
console.log('Versions:', tslab.versions)
I received the following error:
Cannot find name 'console'. Do you need to change your target library? Try changing the lib compiler option to include 'dom'.
I tried finding a solution on the Internet, but they talk about changing the tsconfig.json file. But I can't seem to find where that file is. Any help would be greatly appreciated. I love Jupyter, and really need to start to learn TypeScript (and JavaScript)
The text was updated successfully, but these errors were encountered:
JacobJWalker
changed the title
Receiving the Error when
Receiving the Error when trying to run my first program
Oct 11, 2021
same problem here, can not use tslab due to this is. console.log() is really in node.js and not just the browser(dom), can this be supported? if I need supply a tsconfig.js somehow that's fine too.
I just installed TSLab, in Anaconda, and everything was looking good, but when I tried to run the first program:
I received the following error:
I tried finding a solution on the Internet, but they talk about changing the tsconfig.json file. But I can't seem to find where that file is. Any help would be greatly appreciated. I love Jupyter, and really need to start to learn TypeScript (and JavaScript)
The text was updated successfully, but these errors were encountered: