jyash97 / cra-to-vite

59 stars 10 forks source link

Some files can't be converted to ".jsx" #5

Open dimasyudhatech opened 1 year ago

dimasyudhatech commented 1 year ago

Hi, first of all, this script/tool is awesome. I really appreciate what you've done. Unfortunately, I faced some issues as described below

Screenshot from 2023-03-12 16-56-52

So any idea what some files can't be converted to ".jsx"? Thanks a million :)

dotamir commented 1 year ago

@dimasyudhatech As it is described in error you are using some HTML reserved chars which is causing this error. For example, you do have ">" in your code; in HTML tags, we better use symbols instead. So better to replace ">" with >

More information: https://www.w3schools.com/html/html_entities.asp

dimasyudhatech commented 1 year ago

Thank you for the respond @dotamir. I'll try your suggestion and report to you the result.

madyanes commented 1 year ago

Thank you for the respond @dotamir. I'll try your suggestion and report to you the result.

How's the result?