Replies: 1 comment
-
Change your node version, if you are using node 12 change to node 14, works for me ! |
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
-
Describe the bug
I'm not sure but looks like an error regarding the Rest layer, some config about the models but I don't know what exactly it's happening and neither if it has happened to someone else, but all the API project was damaged in my local because of this error.
the server gets up fine, it's when calling an endpoint that I have the error, which is as follows:
Logs
Unhandled error in GET /questionnaires: 500 Error: Invalid repository config: neither modelClass nor modelName was specified.
at Object.resolve (/home/jose/development/mushroomsoft/communities/communities/packages/api/node_modules/@loopback/repository/dist/decorators/repository.decorator.js:104:15)
at /home/jose/development/mushroomsoft/communities/communities/packages/api/node_modules/@loopback/core/node_modules/@loopback/context/dist/resolver.js:97:30
at /home/jose/development/mushroomsoft/communities/communities/packages/api/node_modules/@loopback/core/node_modules/@loopback/context/dist/resolution-session.js:91:53
at tryCatchFinally (/home/jose/development/mushroomsoft/communities/communities/packages/api/node_modules/@loopback/core/node_modules/@loopback/context/dist/value-promise.js:184:18)
at Object.tryWithFinally (/home/jose/development/mushroomsoft/communities/communities/packages/api/node_modules/@loopback/core/node_modules/@loopback/context/dist/value-promise.js:163:12)
at Function.runWithInjection (/home/jose/development/mushroomsoft/communities/communities/packages/api/node_modules/@loopback/core/node_modules/@loopback/context/dist/resolution-session.js:91:32)
at resolve (/home/jose/development/mushroomsoft/communities/communities/packages/api/node_modules/@loopback/core/node_modules/@loopback/context/dist/resolver.js:94:61)
at /home/jose/development/mushroomsoft/communities/communities/packages/api/node_modules/@loopback/core/node_modules/@loopback/context/dist/resolver.js:174:16
at Object.resolveList (/home/jose/development/mushroomsoft/communities/communities/packages/api/node_modules/@loopback/core/node_modules/@loopback/context/dist/value-promise.js:136:32)
at resolveInjectedArguments (/home/jose/development/mushroomsoft/communities/communities/packages/api/node_modules/@loopback/core/node_modules/@loopback/context/dist/resolver.js:157:28)
at Object.instantiateClass (/home/jose/development/mushroomsoft/communities/communities/packages/api/node_modules/@loopback/core/node_modules/@loopback/context/dist/resolver.js:40:27)
at /home/jose/development/mushroomsoft/communities/communities/packages/api/node_modules/@loopback/core/node_modules/@loopback/context/dist/binding.js:619:38
at Binding._getValue (/home/jose/development/mushroomsoft/communities/communities/packages/api/node_modules/@loopback/core/node_modules/@loopback/context/dist/binding.js:476:20)
at /home/jose/development/mushroomsoft/communities/communities/packages/api/node_modules/@loopback/core/node_modules/@loopback/context/dist/binding.js:329:29
at /home/jose/development/mushroomsoft/communities/communities/packages/api/node_modules/@loopback/core/node_modules/@loopback/context/dist/resolution-session.js:71:53
at tryCatchFinally (/home/jose/development/mushroomsoft/communities/communities/packages/api/node_modules/@loopback/core/node_modules/@loopback/context/dist/value-promise.js:184:18)
at Object.tryWithFinally (/home/jose/development/mushroomsoft/communities/communities/packages/api/node_modules/@loopback/core/node_modules/@loopback/context/dist/value-promise.js:163:12)
at Function.runWithBinding (/home/jose/development/mushroomsoft/communities/communities/packages/api/node_modules/@loopback/core/node_modules/@loopback/context/dist/resolution-session.js:71:32)
at Binding.getValue (/home/jose/development/mushroomsoft/communities/communities/packages/api/node_modules/@loopback/core/node_modules/@loopback/context/dist/binding.js:320:67)
at RequestContext.getValueOrPromise (/home/jose/development/mushroomsoft/communities/communities/packages/api/node_modules/@loopback/core/node_modules/@loopback/context/dist/context.js:591:36)
at RequestContext.get (/home/jose/development/mushroomsoft/communities/communities/packages/api/node_modules/@loopback/core/node_modules/@loopback/context/dist/context.js:504:21)
at HttpHandler._handleRequest (/home/jose/development/mushroomsoft/communities/communities/packages/api/node_modules/@loopback/rest/dist/http-handler.js:63:47)
GET /communities-api/questionnaires 500 32.907 ms -
Additional information
I have done almost everything without having a solution, please if anyone has any idea of what could happen I will be very grateful.
Beta Was this translation helpful? Give feedback.
All reactions