The error message you're seeing suggests that Deno is having trouble resolving the import path "#utils/Function.js". Deno uses a different module resolution strategy than Node.js and requires import paths to be explicit. This means that you need to include the full file path, including the extension, in your import statements.
In Deno, you can't use import paths that start with "#" unless they are defined in an import map. Import maps allow you to remap the location of dependencies from their original location to a new one. This can be useful for using bare specifiers, like "#utils/Function.js", instead of relative or absolute file paths.
Here's an example of how you might define this in an import map:
{
"imports": {
"#utils/": "./utils/"
}
}
In this example, any import that starts with "#utils/" would be mapped to the "./utils/" directory.
You can specify the import map when running your program with the --import-map flag, like so:
$ deno run --import-map=import_map.json ./mod.ts
If you're still having trouble, could you provide more information about your project structure and how your import statements are set up? That would help me give more specific advice. 🦕