Front End Development Libraries Projects - Build a Markdown Previewer - marked is not callable

Tell us what’s happening:
hi there. I’m trying to run React TC and Marked as it advised in challenge. Facing an issue:
marked This expression is not callable
marked has no call signatures
Couldn’t find anything on web. Any ideas?

Your code so far
import marked from 'marked' const renderer = new marked.Renderer(); const marked2 = marked(text, renderer);`

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36

Challenge: Front End Development Libraries Projects - Build a Markdown Previewer

Link to the challenge:

1 Like
  • you need to include this “library”, if you have not already

happy coding :slight_smile:

That is what I did
Your code so far
import marked from 'marked'

I also used in terminal npm i marked

You are more likely to get help if you post a GitHub repo or a StackBlitz/CodeSandbox.


marked is a named export, not a default.

import { marked } from 'marked';

https://marked.js.org/#usage

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.