#This destroyed my noobish brain!

29 messages ยท Page 1 of 1 (latest)

left creek
#

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!

tender gardenBOT
#

๐Ÿ”Ž 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)

bronze coral
#

have you tried restarting vscode (i don't think thats the issue tho)

left creek
bronze coral
#

but are you using vite or nextjs? you mention each other and im confused... (they can't be used at the same time iirc)

left creek
bronze coral
#

and if you completely copy the code to the other page, it still errors?

left creek
bronze coral
#

๐Ÿ˜ญ also try removing .next and then nodemodules and reinstalling

left creek
#

Ah yeah, such a bummer this. Weird!

bronze coral
#

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

left creek
#

lol, deleted the folder, copied the code from about, made a new folder and the "error" persists ๐Ÿ™‚

#

still working when running dev tho

bronze coral
#

what about delete file and copy other file meow_peek

left creek
#

Updated node and next, still no luck ๐Ÿ™‚

#

and I tried to copy the 'contact' to a new file in another folder, no problem ๐Ÿ™‚

bronze coral
#

im thinking something was not quite right in the name... but ๐Ÿคท

left creek
#

nah ๐Ÿ™‚ it breaks at the react-thingeys <></>

bronze coral
#

so, one time it works, not not another ๐Ÿ˜ญ

left creek
#

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.

void jolt
#

try using <React.Fragment> instead of <>

left creek
left creek
#

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

left creek
#

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.