Internal error using loadFilesSync require() of ES Module. #4303
Unanswered
vagnerwentz
asked this question in
Q&A
Replies: 1 comment 6 replies
-
It is not possible to import ES Modules with require so we are not able to import ES Modules with sync API. You can use |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm doing some studies on GraphQL, and when trying to modularize my application, putting resolvers in separate files, and when trying to make a
loadFilesSync(path.join(__dirname), '**/*.resolvers.js')
, It's giving me an error in the terminal.My package.json with the versions
server.js
products.resolvers.js
products.model.js
orders.resolvers.js
orders.model.js
Beta Was this translation helpful? Give feedback.
All reactions