D
Deno

help

Error at the execution of a programm

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

Looking for more? Join the community!

Recommended Posts
Can't import typescript moduleWhy can I only import the js file and not the ts file? ```js import * as zip from "https://deno.lanIs there a way to change the default Details of the compiled exeI esentialy want to change the comiling defaults of the details and the image of the resulting exe (Setting source map root with `deno_emit`Hello! I'm currently trying to use `deno_emit` so bundle some assets. The code bundles properly, howIn Deno, what is the best way to simply host static websites?What is the best way to simply host static/cached files? Without having to do a read file call everyzsh: command not found: deno on macOSplease send helpUsing esbuild with import mapsHello 👋 I'm attempting to migrate one of my front-end projects to using Deno for tooling instead ofproxy-agent not working on Deno DeployI'm trying to use a proxy for the node-fetch requests in a deno app. I chose proxy-agent npm packagExtremely high CPU usage in Windows running on Intel Pentium processorI have a simple app (about 300 lines of code, few deps). I compile it into a Windows executable. WheImpossible to use `"jsx": "preserve"` in deno.json...Well it seems that I can't use jsx preserve in deno.json, when I try to run any tasks in deno.json, integrating deno_webOk I seem to have poobrain today. Can't seem to get the deno_web extension working. The core versioCan I use Workers in an executable ?Everything is in the questions, on the doc site, it is mention that we can't use Workers when creatiWalkSync dosnt get filesIm trying to read all files of a folder with WalkSync from the deno STD libary but it dosnt see thedeno behaving differently in local dev env and production docker buildsI'm currently trying to switch from using node+yarn 2 for my blogs static files to deno. however theFront end dev needed for 6 months.Hello. I am in need of a frontend developer. dm me pls.Include platform and version in compiled binary filenameRight now when i run `deno compile --output bin/myprogram`, it works as expected. Is is possible to How to handle a user abort by Deno.serveHello, I have a question and discovered this Discord channel now. The Deno website has an example atAPI hooks during restart for deno run --watchHello! I thought it would be super fun to further minimize repetitive tasks while manually testing adeno compile -A npm:cowsay not workingHello, I am trying `deno compile -A npm:cowsay` and then following that with `./cowsay Hello World!`compiling issue with import { WebSocketServer } from "npm:ws@^8.14.1"Using this impot in a "deno run --unstable [etc...]" env works flawless / as intended but trying to Is there any way to get Deno to not statically analyze import()?I understand that statically analyzing and fetching dynamic import() calls is a good thing for perfo