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
We have a project that has a number of packages. Package server, let's call it @company/server, calls makeSchema() [in a file named src/schema.ts] that references a series of graphql files [queries, mutations, etc] (the files [types] are referenced via import * as types from './graphql') some of those files contain references to interfaces, types or enums defined in @company/db and @company/core my problem is that when makeSchema attempts to evaluate those other package dependencies, we are getting Error: Cannot find module '@company/core'
I have been trying to resolve this for hours but cannot figure out what I am missing. This is only happening on windows when attempting to run the code on docker using docker compose and the command being run is ts-node --transpile-only src/schema
This is what the makeSchema call looks like in packages/server/src/schema.ts. It is the only call in that file.
I figure it has to be something ridiculously simple but I just cannot figure out what it is. If someone has some insight it would be immensely appreciated. Thank you.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We have a project that has a number of packages. Package server, let's call it @company/server, calls makeSchema() [in a file named src/schema.ts] that references a series of graphql files [queries, mutations, etc] (the files [types] are referenced via
import * as types from './graphql'
) some of those files contain references to interfaces, types or enums defined in @company/db and @company/core my problem is that when makeSchema attempts to evaluate those other package dependencies, we are gettingError: Cannot find module '@company/core'
I have been trying to resolve this for hours but cannot figure out what I am missing. This is only happening on windows when attempting to run the code on docker using docker compose and the command being run is
ts-node --transpile-only src/schema
This is what the makeSchema call looks like in packages/server/src/schema.ts. It is the only call in that file.
I figure it has to be something ridiculously simple but I just cannot figure out what it is. If someone has some insight it would be immensely appreciated. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions