Error at the execution of a programm
Hey !
I have a problem when i run one of my programm with deno, is a programm made with typescript but whenn i execute it in the terminal he told me that he dont find the deno module, but i have install it and this error happend only on this programm if i execute an other one i will have no problem with it.
I send u some screens its better than text :))
10 Replies
That's probably your problem.
+ share the code.
+ why are you making a function to get the values?
I make function to get the value cause its one question of my exercise, we learn to use the getter and the setter
This is the code of the object
This one is the main
What does your modele directory look like? Are you perhaps missing file extension on your import?
The code above is missing file extensions on the import statements.
I can't add an extension on a import
Well i just have my files on this directory, but like i said before all my programms works but not this one , maybe is due to the import and export cause i never done that before (im a beginner with deno tbh)
Are you sure you have the Deno extension installed, and that Deno is enabled in the workspace?
What are you working in; VS Code?
If the file on disk has an extension then you'll need to add the extension in your import statement too.
Even if vscode shows an error on import statement try running it anyway. If it works there's an issue with your Deno extension in vscode.