所以,标题是一个问题。尝试从环回应用程序生成angular服务,但得到这个错误
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;
^
不确定何时停止工作:在更新slc之后或在我的一些编码之后
任何想法吗?
将model-config.json中的AccessToken公共属性更改为true
"AccessToken": {
"dataSource": "mongo",
"public": true }
通过重新安装删除node_modules
和npm cache clean
,可以使其恢复正常。