1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00
denoland-deno/tests/testdata/run/node_prefix_missing
Bartek Iwańczuk acd01eb2b4
feat: Add a hint on error about 'Relative import path ... not prefixed with ...' (#25430)
Running a file like:
```
import "@std/dotenv/load";
```
Without a mapping in `imports` field of `deno.json` or `dependencies` of
`package.json`
will now error out with a hint:
```
error: Relative import path "@std/dotenv/load" not prefixed with / or ./ or ../
  hint: Try running `deno add @std/dotenv/load`
    at [WILDCARD]bare_specifier_without_import/main.ts:1:8

```

Closes https://github.com/denoland/deno/issues/24699

---------

Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
2024-09-05 08:25:56 +02:00
..
config.json chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
feature_enabled.out fix: make some warnings more standard (#25324) 2024-09-03 10:45:01 +02:00
import_map.json chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
main.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
main.ts.out feat: Add a hint on error about 'Relative import path ... not prefixed with ...' (#25430) 2024-09-05 08:25:56 +02:00