Uncaught TypeError: Om is not a function
I built a react app with vite and everything works fine in the dev server, but when I build it I get a blank white page and the console contains the error:
I looked where it was pointing to in the code and seems to be upset at this:
Which seems to be this line
Which seems like it's saying dayjs isn't a function, but at the top of the file I have
And it works as intended in the development server. It only breaks when I build.
Any help would be greatly appreciated.
1 Reply
I fixed it!
I needed to change
to
Idk how I didn't figure it out sooner