Munda
Munda10mo ago

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 :))
No description
No description
10 Replies
abcdef38
abcdef3810mo ago
That's probably your problem. + share the code. + why are you making a function to get the values?
Munda
Munda10mo ago
I make function to get the value cause its one question of my exercise, we learn to use the getter and the setter
Munda
Munda10mo ago
This is the code of the object
Munda
Munda10mo ago
This one is the main
cknight
cknight10mo ago
What does your modele directory look like? Are you perhaps missing file extension on your import?
NDH
NDH10mo ago
The code above is missing file extensions on the import statements.
"../modele/Adherent.ts"; // <<< add the '.ts'
"../modele/Adherent.ts"; // <<< add the '.ts'
Munda
Munda10mo ago
I can't add an extension on a import
No description
Munda
Munda10mo ago
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)
No description
NDH
NDH10mo ago
Are you sure you have the Deno extension installed, and that Deno is enabled in the workspace? What are you working in; VS Code?
cknight
cknight10mo ago
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.