#Error on building

39 messages · Page 1 of 1 (latest)

idle laurel
#

Could I screen share with someone in 2 hours, so 4pm EST? The full error message is attached as a file. Here is the beginning:

info - Collecting page data
[== ] info - Generating static pages (0/5)
Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Error serializing .product returned from getStaticProps in "/".
Reason: undefined cannot be serialized as JSON. Please use null or omit this value.
at isSerializable (C:\Users\Sabih\Documents\coding\diabetics-together\storefront\node_modules.pnpm\next@12.0.7_@babel+core@7.15.8_react-dom@17.0.1_react@17.0.1_webpack@5.84.1\node_modules\next\dist\lib\is-serializable-props.js:39:19)
at C:\Users\Sabih\Documents\coding\diabetics-together\storefront\node_modules.pnpm\next@12.0.7_@babel+core@7.15.8_react-dom@17.0.1_react@17.0.1_webpack@5.84.1\node_modules\next\dist\lib\is-serializable-props.js:46:66

idle laurel
#

My database is also empty

#

I'm using the public schema

kindred moat
#

I don't believe medusa-express has been maintained. If you are brand new to the project and looking for something that will work pretty much out of the box, you want to use the main nextjs starter. You'll also have a lot easier time on Linux.

idle laurel
#

@kindred moat this is the nextjs starter I got form the quickstart. and why is it a easier time on linux?

#

I will reinstall the frontend with the nextjs starter and see if it works

#

ok that worked, with a separate download of the nextjs starter

#

small error on load though:

#

backend error says a region is required one sec

#

clearing local storage does not work

#

center pic, "clear site data'"

kindred moat
#

make sure you ran your migrations

#

and that you are not trying to use sqlite

#

because sqlite is no longer supported

idle laurel
#

I put in the config code for postgres

#

I ran migrations and the tables were created

kindred moat
#

Did you go into the admin app and create a region?

idle laurel
#

backend terminal spits this out:

#

do I need the admin app

kindred moat
#

Yes

idle laurel
#

how do I open the admin app, I have it installed

#

nvm localhost:7000 I think

kindred moat
#

By default, the admin will be available on the URL localhost:9000/app.

idle laurel
#

crap another step, ok thanks

kindred moat
#

You will have to have some way of seeing orders, adding products, etc. The ready-made admin app is easiest. Technically, you COULD use the APIs for everything...

idle laurel
#

admin installed and running and working, I logged in

#

set up a region, USA

#

frontend has a new error

kindred moat
#

I don't actually use the React starter, but long ago when I tested it, I seem to remember it expects an EU region. Maybe try that?

idle laurel
#

huh, that worked for some reason

#

I also restarted the backend and frontend

#

nvm it came back upon reload

idle laurel
#

Error: Passing props on "Fragment"!