所以,标题是一个问题。尝试从loopback应用程序生成角度服务,但得到此错误
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后或我的一些编码之后
有什么想法?
答案 0 :(得分:1)
在model-config.json中将AccessToken公共属性更改为true
"AccessToken": {
"dataSource": "mongo",
"public": true }
答案 1 :(得分:0)
好吧,删除node_modules
和npm cache clean
并重新安装,可以实现这一目标。