Issue using scopes to change a version

I'm using https://deno.land/x/markdown@v2.0.0/ and I get the following error:
Warning Implicitly using latest version (0.182.0) for https://deno.land/std/encoding/_yaml/loader/loader.ts
error: Module not found "https://deno.land/std/encoding/_yaml/loader/loader.ts".
Warning Implicitly using latest version (0.182.0) for https://deno.land/std/encoding/_yaml/loader/loader.ts
error: Module not found "https://deno.land/std/encoding/_yaml/loader/loader.ts".
I added scopes to deno.config, but doesn't seems to work:
"scopes": {
"https://deno.land/x/markdown": {
"https://deno.land/std/": "https://deno.land/std@0.179.0/"
}
}
"scopes": {
"https://deno.land/x/markdown": {
"https://deno.land/std/": "https://deno.land/std@0.179.0/"
}
}
Am I doing something wrong here?
M
MrKleeblatt382d ago
I had the same error some days ago and think that this is because of an issue with dependency paths by the owner of deno.land/x/markdown. I switched to https://deno.land/x/markdown_renderer
M
MariusVatasoiu382d ago
It's weird, because he has a simple import:
import { load } from "https://deno.land/std/encoding/_yaml/loader/loader.ts";
import { load } from "https://deno.land/std/encoding/_yaml/loader/loader.ts";
M
MrKleeblatt382d ago
But that domain does not exist anymore
M
MrKleeblatt382d ago
Which is totally weird given that he changed exactly that import only three weeks ago
M
MariusVatasoiu382d ago
The domain is fine, it's deno.land. Maybe he had a breaking change with std library and changed the path, which now seems once again broken, because the std has changed. I still think there is an issue with scopes mechanism.
M
MariusVatasoiu382d ago
GitHub
Import map scopes doesn't work as expected · Issue #18626 · denolan...
The scopes option from import_map.json or deno.json doesn't work in the following scenario: // test.js import { Marked } from 'https://deno.land/x/markdown@v2.0.0/mod.ts'; console.log(M...
More Posts
Importing local Node.js modulesI have a local Node.js/TS package in local directory `/foo/bar/leet/package.json` – Is there any wayServer Sent Events with FreshHi! I am trying to use Server Sent Events (SSE) with fresh. I understand I should have an island thaTwind intellisense stop workingOut of the blue, intellisense stopped working even though I installed the twind and deno extensions Is there a way to lint check unnecessary `await`s?In VSCode, I get this grey hint in the IDE (photo). But I don't see a lint rule for it at https://lHow use namespace on Denoi am trying to use the same namespace in multiple modules but what used to work in node, doesn't worRestart Deno process on crashHello, The following Node snippet allows a script to restart on crash : ```js import { spawn } fbest practice when spawning commands that require sudo?I am building a command line utility in deno that leverages data coming from `tcpdump`. To get any mChaining Tasks and using --watchIs there a way to chain Deno tasks or something to that accord? I'd like to run esbuild from the comHow to setup deno for Lunarvim?I've followed the steps to install the LSP for deno, but the completion and formatter doesn't work Unexpected token 'export' (deno_core)Playing around with ModuleLoaders, but doesn't seem to make a difference Scripts containing the expglobal is not definedWhy Deno doesn't have global like node.js? There is globalThis, but some things from npm packages arUsing querySelector on NodeI am doing something like: ```ts const nodeList: NodeList = document.querySelectorAll(".foo"); constAre there any plans to support an equivalent to emitDecoratorMetadata?That's it really... I appreciate that Deno doesn't emit anything, so the option would be different,Simpler way to read a file relative to current module?So I wrote a little helper function for reading the text content of a file relative to the current m