Error when trying to build project in Cloudflare
So I'm having the following error when trying to build the project in cloudflare:
1 Reply
I tried doing what was suggested by the error, but when I try it another error happens, but in the frontend
Uncaught TypeError: Failed to resolve module specifier "zod". Relative references must start with either "/", "./", or "../".
, and it doesn't show anything in the page. When I build the project locally with the rollupOptions it also throws the same error, but it works fine without it locally.
I believe it has something to do with the way the project is structured, since it's a monorepo with the backend in another website, while the frontend is in Cloudflare, and I'm trying to import some zod schemas from the backend to the frontend. If there's any utility in seing the folder structure, you can see the github repo here.
How can I solve this problem and make the frontend work?