Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minified react errors #425, #418, #423 post-build/deploy on Vercel. #462

Open
engageintellect opened this issue Mar 10, 2023 · 1 comment

Comments

@engageintellect
Copy link
Contributor

Description

I get no errors in dev environment, only after building. Seems to happen regardless of the content in my pages.
image

Notion Test Page ID

2e801532a8be488b8c4b0d5f1a145a1b

This is extremely helpful for us to debug and fix issues.

Thanks!
-->

@HSeongJ
Copy link

HSeongJ commented Aug 1, 2024

I solved the issue using the following method.
Try these steps in order.

1. Install dayjs from npm.

npm i dayjs

2. To set the desired timezone and format, modify site.config.ts. (You need to add the type to @/lib/site-config.ts).

site-config.ts
image

site.config.ts
image

3. To use dayjs on the server side, create a module. (Create a .ts file in the @/lib folder, e.g., get-date-tz.ts).

image

4. Add items to config.ts

image

5. Write the propertyCreatedTimeValue function in the NotionPage.tsx file.

image

6. Add the propertyCreatedTimeValue function to the components variable.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants