Problem with parcel build index.html

Dear Everyone,

I am new to this programming world, and currently I am learning the Ultimate HTML5 & CSS3 series: Part 3.
Under the Building for Production section, I am experiencing the problem.
When I run with parcel build index.html, it gives error something like C:\Users\Wow\Desktop\Moshify\index.html: tree.render is not a function.

So, if some body helps me to fix this issue, its much appreciable and thankful.
Thanks in advance!

1 Like

Can you please share the complete error message? Also, if possible, please also share relevant code snippet(s).

Hi Sufian,

Thanks very much for your reply and the error details are as given below:

Thanks

In root i.e. in MOSHIFY folder

  1. create a file called “.htmlnanorc.js” (with no quotes “”)
  2. paste below code and save it and then run ‘parcel build index.html’.

module.exports = {
minifySvg: false
}

2 Likes

Thanks very much for your great help!

Thank you, it works!!

I did this and works. But, when a try to commit, I get and error.
Can you help me??

This is the file that I added to solve the first problem

I fixed it. I closed VSCode and opened it again. Thanks anyway

My problem after this was that Netlify would not deploy successfully. It keeps telling me that “No such file or directory”

I tried the 1.12.3 ver of parcel as some have tried and wroked for them, but I still dont know what the problem is, has anybody encountered this?

Hello Bro
I have a problem in this step.How do I have to solve this step

Just remove “sudo” from the command.

The “sudo” part only runs of Mac and Linux.

Thanks bro.I will try it.