#products not showing on storefront

22 messages · Page 1 of 1 (latest)

rancid crescent
#

i was editing the next.js and tailwind css and now my products aren't showing on my storefront. did i do something to remove the link?

delicate hornet
#

😂 just css?

#

search for hidden class or something. Hard to say without you actually posting any code.

#

And please don't post the same question in other channels. One thread is enough.

rancid crescent
#

css. js. tsx. installed useState, useEffect, react etc, ran npm run audit a few times. i don't really know. where can i see whether the backend is linked to the frontend?

delicate hornet
#

in the Network Tab of devtools

rancid crescent
rancid crescent
#

and this " at Socket.<anonymous> (C:\Users\user\Documents\medusa-storefront\node_modules\pg-protocol\dist\index.js:11:42)
at Socket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:343:12)
at readableAddChunk (node:internal/streams/readable:316:9)
at Readable.push (node:internal/streams/readable:253:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
length: 104,
severity: 'FATAL',
code: '28P01',
detail: undefined,
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'auth.c',
line: '329',
routine: 'auth_failed'
}
[query] select "p0".* from "public"."product" as "p0" where "p0"."deleted_at" is null limit 4 offset 4 [took 86 ms]
"

balmy lodge
#

Looks like you have an issue with your database connection, are you sure that your database is up and running ? right db credentials given to the medusa-config.js file ?

rancid crescent
#

hi

#

i recall i changed something here but i can't remember

balmy lodge
#
const DATABASE_URL =
  process.env.DATABASE_URL || "postgres://localhost/medusa-store";

Here ☝️
You'll need to add credentials, here is an example :

const DATABASE_URL = "postgres://username:password@localhost/medusa-store";
#

Maybe the issue is due to this

rancid crescent
#

so i'll need to replace it?

rancid crescent
#

const DATABASE_URL =
process.env.DATABASE_URL || "postgres://username:password@localhost/medusa-store"; gives me this Failed to compile.
Module not found: Can't resolve '../../fundamentals/icons/refresh-icon' in 'C:\Users\user\Documents\medusa-backend.cache\admin\src\components\extensions\route-container'
cache/admin/src/components/extensions/route-container/route-error-element.tsx

rancid crescent
#

i'm getting this in the homepage: Unhandled Runtime Error
Error: Network Error

Call Stack
createError
node_modules@medusajs\medusa-js\node_modules\axios\lib\core\createError.js (16:0)
XMLHttpRequest.handleError
node_modules@medusajs\medusa-js\node_modules\axios\lib\adapters\xhr.js (117:0)

#

i think the issues is in the frontend as i only edited it today.

balmy lodge