raphico
raphico
TTCTheo's Typesafe Cult
Created by raphico on 3/11/2025 in #questions
Error: cannot find package in yarn PnP
I’m working on a Yarn v3 workspace using Plug’n’Play (PnP) for package management, and I’m encountering a module resolution issue when running my server When I try to start my development server using nodemon, I get the following error: node:internal/modules/run_main:122 triggerUncaughtException( ^ Error: Cannot find package 'http-graceful-shutdown' imported from /home/raphico/repos/personal/projects/product-feedback-app/packages/server/src/index.ts This happens even though http-graceful-shutdown is correctly listed in my dependencies in package.json. Project Setup: I have a monorepo using Yarn v3 with the following structure: https://github.com/Raphico/product-feedback-app server/package.json { "name": "@product-feedback-app/server", "packageManager": "[email protected]", "description": "Product feedback app backend", "type": "module", "scripts": { "build": "yarn tsc", "dev": "nodemon src/index.ts", "start": "node dist/index.js", "typecheck": "yarn tsc --noEmit", "lint": "yarn eslint src" }, "dependencies": { "@fastify/compress": "^8.0.1", "@fastify/cors": "^11.0.0", "@fastify/helmet": "^13.0.1", "@fastify/rate-limit": "^10.2.2", "bytes": "^3.1.2", "fastify": "^5.2.1", "http-graceful-shutdown": "^3.1.14", "parse-duration": "^2.1.3", "pino": "^9.6.0", "zod": "^3.24.2" }, "devDependencies": { "@types/node": "^22.13.8", "nodemon": "^3.1.9", "ts-node": "^10.9.2", "typescript": "^5.8.2" } } nodemon.json { "watch": ["src"], "ext": "ts", "execMap": { "ts": "node --loader ts-node/esm" } }
5 replies
TTCTheo's Typesafe Cult
Created by raphico on 6/17/2024 in #questions
Nextjs parallel and intercepting routes
Github:https://github.com/Raphico/byte/tree/main Live site: https://byte.raphico.tech/dashboard I'm working on a project(👆) where I’m trying to make nextjs parallel and intercepting routes to create a modal. But I can't seem to make it work. When I click on the workshop card, I‘m redirected to ‘/workshop/[workshopId]’ with both a standard route(in the workshop route under the app route group) and an intercepting route (in the @modal slot under the app route group) that triggers a modal. However, instead of displaying the modal, nextjs displays the normal workshop page. I'm guessing I'm doing something wrong that causes nextjs to miss the modal. I've gone through the docs, sample code, and similar github issues but still can't find the root cause I would appreciate any insights or suggestions on resolving this problem to ensure the modal loads correctly
1 replies
TTCTheo's Typesafe Cult
Created by raphico on 5/27/2024 in #questions
Next.js file organization and security with data access
Does anyone have time to check out a project I'm currently working on and share their insight on file organization and security with data access? https://github.com/Raphico/byte
1 replies
TTCTheo's Typesafe Cult
Created by raphico on 4/28/2024 in #questions
Deploying a dockerized next.js app
Hey everyone! Has anyone deployed a Dockerized Next.js application to production before? I’m looking for some guidance on how to do the same with my application. Any tips or advice would be greatly appreciated!
6 replies
TTCTheo's Typesafe Cult
Created by raphico on 4/27/2024 in #questions
Testing in react
Hey everyone, I’ve been pondering whether diving into learning how to test React code is worth it. Does anyone here test their React code, and if so, how crucial do you find it? Appreciate any insights or experiences you can share!
8 replies