#Module not found when running deno run

8 messages · Page 1 of 1 (latest)

stark gate
#

Something weird has started happening.

When I run deno run src/main.ts it seems as if Deno is trying to run it from a completely bonkers file path.

error: Module not found "file:///Users/me/Projects/my-project/src/Users/me/Projects/my-project/src/main.ts".

I don't know what's happened and why it seems to append the Users folder twice.

Does anyone have any idea?

thick mauve
#

What does pwd return?

sharp summit
#

Is your 'src' a symlink perhaps to "Users/me/Project/my-project/src"?

pallid saddle
#

Or maybe.

stark gate
stark gate
#

I figured out the culprit.

"/": "./src/",

in my deno.json imports