Cannot find module in monorepo #5590
Replies: 1 comment
-
swc has nothing to do with module resolution by default. Check if |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm using turborepo for a node application and trying to set up swc to build my application. My app is dependent on a local package as part of the monorepo and I've initialised how to build both the dependency and the app, and they build without issues. When I try to run the app however I get the "Cannot find module" error for my local dependency.
As according to the folder structure below, my microservice depends on my utils package. It's added to the microservice's package.json all fine and everything works in dev servers, just need to sort out how to build and run a production server.
Is this a bundling issue? Are there any suggestions for how I could fix this? Thank you!
# folder structure apps └── microservice ├── dist └── src packages ├── eslint-config-custom ├── utils └── tsconfig
Beta Was this translation helpful? Give feedback.
All reactions