Skip to content

lesson 14 Error:TypeError: str.charCodeAt is not a function #5662

Answered by aaankeet
highHumann asked this question in Q&A
Discussion options

You must be logged in to vote

@highHumann
Its Suppose to be encoding for both of the SVG.
typo in highSVG its encoding:"utf8" not encoded

const lowSVG = fs.readFileSync("./images/dynamicNft/frown.svg", { encoding: "utf8" })
const highSVG = fs.readFileSync("./images/dynamicNft/happy.svg", { encoding: "utf8" })

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@highHumann
Comment options

Comment options

You must be logged in to vote
1 reply
@highHumann
Comment options

Comment options

You must be logged in to vote
2 replies
@highHumann
Comment options

@aaankeet
Comment options

Answer selected by highHumann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants