You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running deno run -A http/file_server.ts in the Standard Library causes the following error:
asher@Ashers-MacBook-Air deno_std % deno run -A http/file_server.ts
error: Relative import path "@std/net/get-network-address" not prefixed with / or ./ or ../
at file:///Users/asher/GitHub/deno_std/http/file_server.ts:54:35
Notice this throws on the last import (see here), which is an inter-package import.
Now, when we remove that import and rerun the script, we get the following error:
asher@Ashers-MacBook-Air deno_std % deno run -A http/file_server.ts
error: Relative import path "@std/fmt/bytes" not prefixed with / or ./ or ../
at file:///Users/asher/GitHub/deno_std/http/file_server.ts:53:39
Notice this still throws on what is now the last import (see here).
Reverting the previous line deletion, if the root Deno configuration file is defined, the script runs successfully. In other words, using deno run --config=deno.json -A http/file_server.ts works fine.
Adds much better support for the unstable Deno workspaces as well as
support for npm workspaces. npm workspaces is still lacking in that we
only install packages into the root node_modules folder. We'll make it
smarter over time in order for it to figure out when to add node_modules
folders within packages.
This includes a breaking change in config file resolution where we stop
searching for config files on the first found package.json unless it's
in a workspace. For the previous behaviour, the root deno.json needs to
be updated to be a workspace by adding `"workspace":
["./path-to-pkg-json-folder-goes-here"]`. See details in
denoland/deno_config#66Closesdenoland#24340Closesdenoland#24159Closesdenoland#24161Closesdenoland#22020Closesdenoland#18546Closesdenoland#16106Closesdenoland#24160
Running
deno run -A http/file_server.ts
in the Standard Library causes the following error:Notice this throws on the last import (see here), which is an inter-package import.
Now, when we remove that import and rerun the script, we get the following error:
Notice this still throws on what is now the last import (see here).
Reverting the previous line deletion, if the root Deno configuration file is defined, the script runs successfully. In other words, using
deno run --config=deno.json -A http/file_server.ts
works fine.The text was updated successfully, but these errors were encountered: