1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00
denoland-deno/tests/specs/check
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
..
check_types_dts chore: migrate bench, publish, and more itests to spec tests (#23584) 2024-04-29 10:08:27 -04:00
check_with_excluded_file_specified chore: migrate bench, publish, and more itests to spec tests (#23584) 2024-04-29 10:08:27 -04:00
cjs_default_export chore: fix flaky net_listen_allow_localhost_4555 (#23726) 2024-05-07 17:21:56 +00:00
css_import feat(check): allow using side effect imports with unknown module kinds (ex. css modules) (#23392) 2024-04-16 16:46:31 -04:00
extensionless chore: migrate bench, publish, and more itests to spec tests (#23584) 2024-04-29 10:08:27 -04:00
globbing feat: glob and directory support for deno check and deno cache cli arg paths (#25001) 2024-08-20 18:38:06 +00:00
jsx_import_source_types feat(cli): add support for jsxImportSourceTypes (#23419) 2024-04-30 18:12:35 +00:00
jsx_import_source_types_config feat(cli): add support for jsxImportSourceTypes (#23419) 2024-04-30 18:12:35 +00:00
npm_pkg_empty_main_entry fix(node): handle empty 'main' entry in pkg json (#23155) 2024-04-01 07:07:11 +01:00
random_extension chore: migrate bench, publish, and more itests to spec tests (#23584) 2024-04-29 10:08:27 -04:00
types_resolved_relative_config chore(specs): use jsonc for metadata file (#22946) 2024-03-15 17:27:52 +00:00
unstable_suggestion fix(check): do not suggest running with --unstable (#23092) 2024-03-27 11:58:36 -04:00
with_bare_import feat: Add a hint on error about 'Relative import path ... not prefixed with ...' (#25430) 2024-09-05 08:25:56 +02:00
workspace feat: npm workspace and better Deno workspace support (#24334) 2024-07-04 00:54:33 +00:00