W
Wasp-lang3mo ago
Sven

I have a wasp project with shadcn

I get the following error when importing a shadcn block into my mainpage. next_image.js?v=f050d64e:2277 Uncaught ReferenceError: process is not defined at ../../../node_modules/next/dist/client/image-component.js (next_image.js?v=f050d64e:2277:21) at require (chunk-G3PMV62Z.js?v=f050d64e:8:50) at ../../../node_modules/next/dist/shared/lib/image-external.js (next_image.js?v=f050d64e:2569:27) at require (chunk-G3PMV62Z.js?v=f050d64e:8:50) at ../../../node_modules/next/image.js (next_image.js?v=f050d64e:2593:22) at __require (chunk-G3PMV62Z.js?v=f050d64e:8:50) at next_image.js?v=f050d64e:2596:16
3 Replies
kapa.ai
kapa.ai3mo ago
Hi @Sven. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Hmm, I don't know enough to give you a confident answer yet. The error you're encountering seems to be related to the Next.js image component within the shadcn library, but the knowledge sources provided don't contain specific information about this issue. However, there are some discussions about using shadcn with Wasp in the Discord support threads. Community members have shared a gist (https://gist.github.com/infomiho/b35e9366e16913949e13eaba0538f553) on how to use shadcn with Wasp. You might find some useful information there. If you're still encountering issues, I recommend providing more information about your setup and the steps you've taken so far, as suggested by Community Member 1 in the Discord thread (https://discord.com/channels/686873244791210014/1223573142199341129). This includes what you've tried to do, at which step it fails, the version of Wasp you're using, and what kind of app you're running. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Sven, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
martinsos
martinsos3mo ago
Sounds like you are: 1. Trying to use server code on the client side 2. Trying to use the code intended for next in Wasp Not sure about any of these, but these are initial hints that come to me based on some of the keywods I see here
Sven
SvenOP3mo ago
Yeah i fixed 1.
Want results from more Discord servers?
Add your server