diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-09-05 07:25:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-05 08:25:56 +0200 |
commit | acd01eb2b41e37a480943f79cfa28fc220c4baca (patch) | |
tree | a9808419bc88099fc811162d000007f6b2c30f9d /ext/cron/lib.rs | |
parent | 105c2e336a4312ed1714ab893c57eae2a19068c7 (diff) |
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>
Diffstat (limited to 'ext/cron/lib.rs')
0 files changed, 0 insertions, 0 deletions