You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My code works on Stackblitz but not my local machine, and I've no clear idea of why. Yes, I know it sounds a bit stupid, but I thought you may have an idea of how to debug Nestia considering it's doing some funky package patching.
Nestia version: 5.2.3-dev.20240219
Expected behavior: My NestJS starts correctly
Actual behavior: The app crashes with the following error:
Error: Error on nestia.core.TypedRoute.Post(): no transform has been configured. Run "npx typia setup" command, or check if you're using non-standard TypeScript compiler like Babel or SWC.
After installing nestia and launching the setup command, I added a single route following nestia's documentation.
However my app crashes at startup with the error cited above.
Alright, I figured it was due to PNPM due to the fact it worked on Stackblitz.
It seems like this settings in my npmrc file was the culprit :
node-linker=hoisted
I suspect this was screwing up with the package patching somehow.
I'm closing the issue but you may want to take a look at it anyway. Also changing the title for future references.
RDeluxe
changed the title
Error on MacOS but not Stackblitz -- no transform has been configured
Error on MacOS but not Stackblitz -- no transform has been configured -- due to PNPM hoisting
Apr 24, 2024
Summary
My code works on Stackblitz but not my local machine, and I've no clear idea of why. Yes, I know it sounds a bit stupid, but I thought you may have an idea of how to debug Nestia considering it's doing some funky package patching.
After installing nestia and launching the setup command, I added a single route following nestia's documentation.
However my app crashes at startup with the error cited above.
Code occuring the bug
I trimmed down my codebase and created a new repository here repository, and Stackblitz.
The crazy thing is, with the exact same version of Node, NPM and PNPM, the code is failing on my machine (MacOS M1) but runs on Stackblitz.
The text was updated successfully, but these errors were encountered: