question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Strange bug related to import_map.json

See original GitHub issue

VS Code Deno can’t find the method on the class. It is a valid code and those methods exists and code compiled correctly by deno.

Screen Shot 2021-05-30 at 2 37 49 pm

It’s hard to create an isolated test case for it, so I wrote a screen recording showing how it looks like https://youtu.be/Ql3JgfMGoUM

It seems it’s related to import_map.json, as when I use the absolute paths in imports it works correctly.

Versions

vscode: 1.56.2 extension: v3.4.0

deno

deno 1.10.2 (release, x86_64-apple-darwin)
v8 9.1.269.27
typescript 4.2.2

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
jeieacommented, Jul 2, 2021

image It seems you are using old extension @justinmchase.

1reaction
justinmchasecommented, Jul 2, 2021

The docs say to use "deno.importMap" but the plugin appears to be actually expecting "deno.import_map". When I change it to that it works fine. So it seems like either the plugin or the documentation is off.

Screen Shot 2021-07-02 at 12 23 16 PM

Screen Shot 2021-07-02 at 12 23 28 PM

Screen Shot 2021-07-02 at 12 24 01 PM

Read more comments on GitHub >

github_iconTop Results From Across the Web

import map breaks relative importing · Issue #9272
If I add an import map to my project that uses relative imports anywhere then I get a strange error. C:\Users\rom\Documents\deno-issue>deno run ...
Read more >
1688879 - (importmaps) Implement Import Maps
Bug 1688879 - Part 3: Parse and register an import map. ... to be updated, or we need a similar window.internals stuff in...
Read more >
Safari Technology Preview Release Notes
Fixed an issue where browser.tabs sometimes returned an incorrect URL for pinned tabs. Bug Fixes. Fixed the Share Menu when sharing an image...
Read more >
Bug & Insect Identification List NPMA's Pest Guide
This Pest Guide is a helpful tool to aid in identifying bugs, insects, and other pests. Browse a comprehensive list of bugs, insects,...
Read more >
Invasive Species: Insects
Invasive Insects · Asian Longhorned Beetle · Balsam Woolly Adelgid · Box Tree Moth · Brown Marmorated Stink Bug · Emerald Ash Borer...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found