Cannot use buildSchema with imported resolvers #1483
-
Hello everyone, i am struggling to use the buildSchema function. Can someone tell me how to convert my glob path strings into resolver classes to use them in the buildSchema function. I have this resolver file in "src/resolver/testResolver"
And in my index.ts in src i have something like this
if a want to start my server i get this error node:internal/errors:484 Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users//Documents/Code/apolloTest/dist/resolver/testResolver' imported from /Users//Documents/Code/apolloTest/dist/index.js Here for more details: https://github.com/RealSebbooo/apollotest/tree/type-graphql-2-beta |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You need |
Beta Was this translation helpful? Give feedback.
You need
*.js
imports when you use esm modules