Getting errors following Asim's WhatsApp tutorial

Hi,
I have been following @zonal_mammal’s great tutorial on YouTube: “Let’s Build a WhatsApp Clone with ( Plasmic | NextJs | Supabase | React Query ) - Tutorial”.
It has been an excellent learning experience so far, but I am stuck at around 2h 50min:
https://youtu.be/DT9xj-1I2l4?t=10248

I am getting errors in two files, components/UserProfile.jsx and lib/supabase/profiles.js. I got errors after coding along, but copying and pasting from the github repo did not fix those errors. It is not a typo on my side.

Here are the errors I am getting:
https://plasmiccommunity.slack.com/files/U0388R44SQJ/F038VNUU022/capture2.png
https://plasmiccommunity.slack.com/files/U0388R44SQJ/F0392CHG1MZ/capture3.png

Hi @melted_sturgeon,
The tutorial was released in JavaScript with the intention to keep things simple and focus more on Plasmic concepts, that’s why there exists no types in the current version of that project.

I would recommend disabling the typescript linter because there will be type warnings in multiple places and it would be take some time to review and add types.

Thanks!

Hi @zonal_mammal
Thank you!
Disabling ESLint did not help, but it did have to do with typescript checking.

I managed to sort it out by adding the following to settings.json in VS Code:

“javascript.validate.enable”: false,

Interestingly adding the following did not make any difference:

“typescript.validate.enable”: false,

I was hoping this last line would solve it but it was the javascript one that did it.

In case anyone has a similar issue. here are some references:

https://stackoverflow.com/questions/51069070/removing-ts-errors-from-js-files-in-vs-code/52568994#52568994

https://stackoverflow.com/questions/42632215/how-to-disable-typescript-warnings-in-vscode