r/CodingHelp • u/[deleted] • Feb 08 '25
[Javascript] I need help with a react js thing
https://pastebin.com/T6jA1nUD
This is the code,and I generated it with Mistral,but don't understand what is wrong,as I downloaded the TSX,but can't compile it as I keep getting errors.
Most of it is random quotes,so it is over 1400 lines of code.
I hope someone can help me
https://pastebin.com/MEKY4CMY
This is the link to the error.
It comes up when I use tsc index.tsx
Edit:I have removed the quotes from the code so that it is visible and readable in a better way
1
u/Mundane-Apricot6981 Feb 09 '25
Your approach to using the AI tool is incorrect.
Split your app into small, independent components.
First, ensure that your App.tsx component works with dummy components.
Then, fix each separate component until all of them function correctly.
Avoid using CSS in the early stages; you don't need styles if your app isn't even starting up yet.
Use Codestral for large code fragments and GPT4o when Mistral sucks.
No, I will not do the monkey work of fixing your code for you, sorry.
1
Feb 09 '25
Well,the issue is that it works in Mistral Canvas but not on my laptop. I downloaded all the stuff it told me to download,but it still gives errors.
1
1
u/jonassjoh Feb 08 '25
If you want help resolving errors... why aren't you posting the errors?