TypeError: str.split is not a function
Hey Gang. Im following along this tutorial:
https://deno.com/blog/build-a-blog-with-fresh
But I am running into some major issues. In the last step it tells me to use gfm (https://deno.land/x/gfm/mod.ts) to get the rendering markdown functioning. Like this:
But whenever I try to use this, I end up throwing this error:
I dont know if there's an issue with emojify, or if I have forgotten to use some standard library? It seems that string should have split().
By deno.json:
1 Reply
Nevermind, I figured it out. Turned out that I was passing in
props.data
which is wrong, as its an object, not a string. What I had to do was props.data.content
. I think IntelliJ needs better Deno integration..