open-xyz / informatician

Unleash an open source book platform where literature meets community, and knowledge knows no bounds.
https://informatician.in
MIT License
61 stars 136 forks source link

Migrate to Next.js 13 #659

Closed rohansx closed 1 year ago

rohansx commented 1 year ago

Checkout discussion #660

s2sharpit commented 1 year ago

@s2sharpit @crocmons Now, there is a main task to be done, which is to integrate the open-source book reader platform with books in the format of pdf or epub. Let me know if you guys would like to take on this task.

Hey @rohansx,

Thanks for reaching out! I'm interested in contributing to the project, but I must admit that I'm not familiar with integrating a book reader platform. However, I'm eager to learn and take on new challenges. I'll quickly look into it and get back to you soon to confirm if I can handle the task. Thanks again for considering me for this opportunity.

Looking forward to your response!

Best regards, Tushar ☺️

s2sharpit commented 1 year ago

@s2sharpit @crocmons I was facing issues with the process you mentioned, so I created a copy of the main branch and named it 'v1.' Then, I copied all the files from the 'next-js-tw-migrate' branch and overwrote the files in the 'main' branch. After that, I pushed the changes to the main branch.

The migration to Next.js has been successfully completed in the main branch.

Apologies for the delays, now you can proceed with the further process and issues. Thanks for helping throughout this open source program. You guys are great contributors and collaborators. Appreciate your contributions.

I have checked it locally. It's working perfectly. 👍☺️❤️

crocmons commented 1 year ago

Dear @rohansx,

I am happy to inform you that the issue has been resolved by adding the Mongodb environment key. Everything is now working correctly. Please be reminded to add your MongoDB environment key and ensure that the DB name is "Books".

Thank you for your cooperation.

Screenshot (510)

rohansx commented 1 year ago

@s2sharpit @crocmons Thanks for your help. I deployed the project but books section is not visible on homepage please check that

crocmons commented 1 year ago

Could you kindly provide the link here, @rohansx?

rohansx commented 1 year ago

Could you kindly provide the link here, @rohansx?

It's the same link.. www.informatician.in

s2sharpit commented 1 year ago

Could you kindly provide the link here, @rohansx?

@crocmons, Are you working on it, or I address this issue?

rohansx commented 1 year ago

Also I have deployed the v1 branch on https://react.informatician.in for taking reference to make further changes like adding oauth in login section and many more

crocmons commented 1 year ago

It appears that you have previously worked on this homepage, so I believe you may be able to address the issue at hand. Is it possible that the problem is related to the react-swiper card? @s2sharpit

s2sharpit commented 1 year ago

It appears that you have previously worked on this homepage, so I believe you may be able to address the issue at hand. Is it possible that the problem is related to the react-swiper card? @s2sharpit

It was working perfectly at morning. Let me handle the issue then. ☺️

crocmons commented 1 year ago

Also, @s2sharpit I got this warning on my terminal you can check it out-

Warning: ReactStars: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead. at ReactStars (webpack-internal:///(sc_client)/./node_modules/react-rating-stars-component/dist/react-stars.js:41:41) at div at div at div at CardContent (webpack-internal:///(sc_client)/./components/BkCards/CardContent/CardContent.js:41:28)
at a at LinkComponent (webpack-internal:///(sc_client)/./node_modules/next/dist/client/link.js:105:19) at div at eval (webpack-internal:///(sc_client)/./node_modules/swiper/react/swiper-slide.js:26:67) at div at div at eval (webpack-internal:///(sc_client)/./node_modules/swiper/react/swiper.js:40:98) at div at div at div at div at BkCards (webpack-internal:///(sc_client)/./components/BkCards/BkCards.js:51:69) at Lazy at div at section at InnerLayoutRouter (webpack-internal:///(sc_client)/./node_modules/next/dist/client/components/layout-router.js:226:11) at RedirectErrorBoundary (webpack-internal:///(sc_client)/./node_modules/next/dist/client/components/redirect-boundary.js:72:9) at RedirectBoundary (webpack-internal:///(sc_client)/./node_modules/next/dist/client/components/redirect-boundary.js:80:11) at NotFoundBoundary (webpack-internal:///(sc_client)/./node_modules/next/dist/client/components/not-found-boundary.js:59:11) at LoadingBoundary (webpack-internal:///(sc_client)/./node_modules/next/dist/client/components/layout-router.js:322:11) at ErrorBoundary (webpack-internal:///(sc_client)/./node_modules/next/dist/client/components/error-boundary.js:103:11) at InnerScrollAndFocusHandler (webpack-internal:///(sc_client)/./node_modules/next/dist/client/components/layout-router.js:139:9) at ScrollAndFocusHandler (webpack-internal:///(sc_client)/./node_modules/next/dist/client/components/layout-router.js:213:11) at RenderFromTemplateContext (webpack-internal:///(sc_client)/./node_modules/next/dist/client/components/render-from-template-context.js:15:44) at Lazy at OuterLayoutRouter (webpack-internal:///(sc_client)/./node_modules/next/dist/client/components/layout-router.js:331:11) at Lazy at m (webpack-internal:///(sc_client)/./node_modules/next-themes/dist/index.js:1:335) at exports.ThemeProvider (webpack-internal:///(sc_client)/./node_modules/next-themes/dist/index.js:1:3636) at ThemeProvider (webpack-internal:///(sc_client)/./components/theme/theme-provider.jsx:13:26) at Lazy at body at html at RedirectErrorBoundary (webpack-internal:///(sc_client)/./node_modules/next/dist/client/components/redirect-boundary.js:72:9) at RedirectBoundary (webpack-internal:///(sc_client)/./node_modules/next/dist/client/components/redirect-boundary.js:80:11) at ReactDevOverlay (webpack-internal:///(sc_client)/./node_modules/next/dist/client/components/react-dev-overlay/internal/ReactDevOverlay.js:70:9) at NotFoundErrorBoundary (webpack-internal:///(sc_client)/./node_modules/next/dist/client/components/not-found-boundary.js:51:9) at NotFoundBoundary (webpack-internal:///(sc_client)/./node_modules/next/dist/client/components/not-found-boundary.js:59:11) at HotReload (webpack-internal:///(sc_client)/./node_modules/next/dist/client/components/react-dev-overlay/hot-reloader-client.js:319:11) at Router (webpack-internal:///(sc_client)/./node_modules/next/dist/client/components/app-router.js:147:11) at ErrorBoundaryHandler (webpack-internal:///(sc_client)/./node_modules/next/dist/client/components/error-boundary.js:77:9) at ErrorBoundary (webpack-internal:///(sc_client)/./node_modules/next/dist/client/components/error-boundary.js:103:11) at AppRouter (webpack-internal:///(sc_client)/./node_modules/next/dist/client/components/app-router.js:384:13) at Lazy at Lazy at ServerComponentWrapper (C:\Users\HP\informatician-2\node_modules\next\dist\server\app-render\create-server-components-renderer.js:90:31) at ServerComponentWrapper (C:\Users\HP\informatician-2\node_modules\next\dist\server\app-render\create-server-components-renderer.js:90:31) at InsertedHTML (C:\Users\HP\informatician-2\node_modules\next\dist\server\app-render\app-render.js:890:33)

s2sharpit commented 1 year ago

Also, @s2sharpit I got this warning on my terminal you can check it out-

Yaa, I got the error. Fixing it.