So I recently started with react, jumped to vite and now I am trying to build some next with TS and TW.
Got this strange thing though.
Errors where there are no errors. Dev works fine but for some reason one page breaks all of a sudden.
Using App-router, pages for about, contact etc resides in named folders with a page.tsx inside. Using Prismic as CMS.
Is this a common error? I heard Next could be an *** sometimes but this is only annoying.
Lost like 2 hours cause of this non-error. :/
Ty for help!
#This destroyed my noobish brain!
29 messages ยท Page 1 of 1 (latest)
๐ This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord
๐ต๏ธ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize
โ
You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)
have you tried restarting vscode (i don't think thats the issue tho)
Yeah, tried that, I'm gonna restart the whole system now, thanks!
also you may need this line... but as one works with nearly identical code, idk https://github.com/vitejs/vite/blob/main/packages/create-vite/template-react-ts/tsconfig.json#L15C1-L15C24
but are you using vite or nextjs? you mention each other and im confused... (they can't be used at the same time iirc)
Ah sorry, I use Nextjs now, no more vite.
Restarting did not fix it.
and if you completely copy the code to the other page, it still errors?
Yeah, I've tried both directions, from a working one too this one, might just delete the folder and make a new one
๐ญ also try removing .next and then nodemodules and reinstalling
Ah yeah, such a bummer this. Weird!
unless you have a weird theme, i would say that the one on the left also has issues because field wouldn't be normally green
lol, deleted the folder, copied the code from about, made a new folder and the "error" persists ๐
still working when running dev tho
what about delete file and copy other file 
I'm afraid to do that, I am checking all my versions atm, AI gave me some tips ๐
Updated node and next, still no luck ๐
and I tried to copy the 'contact' to a new file in another folder, no problem ๐
im thinking something was not quite right in the name... but ๐คท
nah ๐ it breaks at the react-thingeys <></>
so, one time it works, not not another ๐ญ
dont know why ๐ will keep the thread, if someone else has an explanation, truly gutted. Have not checked prismic yet, gonna look at that now.
try using <React.Fragment> instead of <>
will do
no luck ๐ญ
will probably be fine if I make a new project, but ugh ๐
could lint be bugging? Could try to reset code to get rid of extensions.
Disabled all extensions, no luck
Turns out I had to manually uninstall everything that has to do with vs code (%userprofile%\AppData\Roaming\Code and %userprofile%.vscode)
Works now it seems.