Reputation: 1641
So, the title is a question. Trying to generate angular services from loopback app, but get this errors
Loading LoopBack app "xxx\\server\\server.js"
Generating "lbServices" for the API endpoint "/api"
Warning: scope User.accessTokens targets class "AccessToken", which is not exposed
via remoting. The Angular code for this scope won't be generated.
Warning: scope AppUser.accessTokens targets class "AccessToken", which is not exposed
via remoting. The Angular code for this scope won't be generated.
undefined:25
throw err;
^
Not sure when it stops to work: after updating the slc or after some of my coding
Any thoughts?
Upvotes: 1
Views: 544
Reputation: 61
Change AccessToken public property to true in model-config.json
"AccessToken": {
"dataSource": "mongo",
"public": true }
Upvotes: 1
Reputation: 1641
Well, deleting the node_modules
and npm cache clean
with re-installation, brings this to life.
Upvotes: 0