lesson 14 Error:TypeError: str.charCodeAt is not a function #5662
-
Please help I'm getting this error:TypeError: str.charCodeAt is not a function
I have done the compilation process everything is working but I'm getting an error while processing deploy-dynamic-svg-nft.js |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Make sure the SVG file is correct.
|
Beta Was this translation helpful? Give feedback.
-
remove
been like this
|
Beta Was this translation helpful? Give feedback.
-
@highHumann
|
Beta Was this translation helpful? Give feedback.
@highHumann
Its Suppose to be
encoding
for both of the SVG.typo in
highSVG
itsencoding:"utf8"
notencoded
const lowSVG = fs.readFileSync("./images/dynamicNft/frown.svg", { encoding: "utf8" })
const highSVG = fs.readFileSync("./images/dynamicNft/happy.svg", { encoding: "utf8" })