ixhbinphoenix / bne

https://theschedule.de
GNU General Public License v3.0
4 stars 0 forks source link

Vercel Internal Server Error CryptoJS #21

Closed Sxyntheon closed 1 year ago

Sxyntheon commented 1 year ago

When the branch deploys to Vercel, the build is successfull, but the browser shows that it has crashed. This seems to be caused by a wrong import of the CryptoJS module, since it is a CommonJS module which is imported via a named import. Oddly enough, I could not recreate the error on my machine, it only happens on Vercel. The problem is that all other normal ways to import it result in the same error.

Ways to fix: Find a working way to import CryptoJS to vercel.

Sxyntheon commented 1 year ago

Ok, lokks like you have to import the whole module and use that as a work around. Not very nice but good enough for now.