Open hoanganhchang opened 1 year ago
I fixed the window is undefined error.
The second one looks unfamiliar to me. Did you try reinstalling after removing node_modules, and .next.
Also you need to put this at the end of the DATABASE_URL: ?ssl={"rejectUnauthorized":true}
The url will look like this: DATABASE_URL="mysql://YOUR_MYSQL_URL_HERE?ssl={"rejectUnauthorized":true}"
I also got this error, here is my sql url DATABASE_URL="mysql://root:root@localhost:3306/sk5?ssl={"rejectUnauthorized":true}&&zeroDateTimeBehavior=convertToNull"
any updates on this?
When running
pnpm run dev
, I got error: error TypeError: fetch failed `error TypeError: fetch failederror ReferenceError: window is not defined at isMacOs (./src/lib/utils.ts:115:5) at Combobox (./src/components/combobox.tsx:102:91) 109 | 110 | export function isMacOs() {
I'm use Apple M1 Pro. Another error when I try
pnpm run db:push
. Got an error: Error: self signed certificate in certificate chain code: 'HANDSHAKE_SSL_ERROR', errno: undefined, sqlState: undefinedPlease help. Many thanks!