Thomas
Thomas2mo ago

Is dynamic import in global installed CLI broken?

My CLI uses dynamic imports. It works without any problems when I import it into a project. But when I install the CLI globally and try to run it, I get the following error message: TypeError: Relative import path “@std/path” not prefixed with / or ./ or ../ Is this a bug or a security feature? I know that the behavior was different in older Deno versions.
2 Replies
Mrcool 🇵🇸
Mrcool 🇵🇸2mo ago
I think deno install defaults to --no-config , you can try removing that from the installed script
Thomas
ThomasOP2mo ago
Thanks, I found out that the error is in front of the computer. 😅

Did you find this page helpful?