Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example not working - Module not found (yaml/loader) #20

Open
sigmasoldi3r opened this issue Aug 5, 2023 · 3 comments
Open

Example not working - Module not found (yaml/loader) #20

sigmasoldi3r opened this issue Aug 5, 2023 · 3 comments

Comments

@sigmasoldi3r
Copy link

If I paste the example, I get the following error:

Warning Implicitly using latest version (0.197.0) for https://deno.land/std/encoding/_yaml/loader/loader.ts
error: Module not found "https://deno.land/std/encoding/_yaml/loader/loader.ts".
    at https://deno.land/x/[email protected]/src/block-lexer.ts:25:22

Deno version:

deno 1.36.0 (release, x86_64-pc-windows-msvc)
v8 11.6.189.12
typescript 5.1.6

Code to reproduce:

import { Marked } from "https://deno.land/x/[email protected]/mod.ts";

const decoder = new TextDecoder("utf-8");
const filename = Deno.args[0];
const markdown = decoder.decode(await Deno.readFile(filename));
const markup = Marked.parse(markdown);
console.log(JSON.stringify(markup.meta));
@leon-kfd
Copy link

leon-kfd commented Sep 3, 2023

Replace Marked for this code:
import { Marked } from 'https://raw.githubusercontent.com/ubersl0th/markdown/master/mod.ts

@robstarbuck
Copy link

robstarbuck commented Sep 17, 2024

Replace Marked for this code: import { Marked } from 'https://raw.githubusercontent.com/ubersl0th/markdown/master/mod.ts';

Thank you, that works but any idea why I need to do this? Is a fix on the way?

@sigmasoldi3r
Copy link
Author

maybe the package at denoland is not up to date? 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants