at /Users/desartist22/Desktop/floema/app.js:80:29  at Layer.handle [as handle_request] (/Users/desartist22/Desktop/floema/node_modules/express/lib/router/layer.js:95:5)  at next (/Users/desartist22/Desktop/floema/node_modules/express/lib/router/route.js:137:13)  at Route.dispatch (/Users/desartist22/Desktop/floema/node_modules/express/lib/router/route.js:112:3)  at Layer.handle [as handle_request] (/Users/desartist22/Desktop/floema/node_modules/express/lib/router/layer.js:95:5)  at /Users/desartist22/Desktop/floema/node_modules/express/lib/router/index.js:281:22  at param (/Users/desartist22/Desktop/floema/node_modules/express/lib/router/index.js:354:14)  at param (/Users/desartist22/Desktop/floema/node_modules/express/lib/router/index.js:365:14)  at Function.process_params (/Users/desartist22/Desktop/floema/node_modules/express/lib/router/index.js:410:3)  at next (/Users/desartist22/Desktop/floema/node_modules/express/lib/router/index.js:275:10)  (Use `node --trace-warnings ...` to show where the warning was created)  (node:1697) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)  (node:1697) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Thanks for sharing this error. Could you show your entire app.js file? (It looks like that's where the error is occurring.) Also, if you configure you
api object in a different file, could you share that file as well?
here you go with the file app.js thanks for helping me
I'm not sure if this will make a difference, but we now recommend
Prismic.client() instead of
Prismic.getApi() to init a Prismic API client. Could you try changing that and see if it helps?
this solves the issue
.getByUID is not a function but when i console.log this (product.data.image.url) it gives me cannot read property
data of undefined. however i posted a another issue for it thanks for helpin me tho really appreciate the efforts you put in
Threads close after a period of inactivity. Flag this thread to re-open it and continue the conversation.