yo angular-fullstack:endpoint消息不会生成message.socket.js

时间:2019-06-25 08:42:40

标签: javascript node.js express yeoman angular-fullstack

yo angular-fullstack:端点shopPacket不会生成shopPacket.socket.js

我尝试更新有角度的全堆栈生成器,但仍然无法正常工作

yo angular-fullstack:endpoint shopPacket
? What will the url of your endpoint be? /api/shopPackets
   create server/api/shopPacket/shopPacket.controller.js
   create server/api/shopPacket/shopPacket.events.js
   create server/api/shopPacket/shopPacket.integration.js
   create server/api/shopPacket/shopPacket.model.js
   create server/api/shopPacket/index.js
   create server/api/shopPacket/index.spec.js```

它应该生成

create server/api/shopPacket/shopPacket.socket.js

像以前一样 有没有我需要添加的选项才能产生像 该链接: https://angular-fullstack.github.io/generators/endpoint/```

操作系统版本/详细信息:macos mojave 10.14.4

节点版本:10.15.1

npm版本:6.4.1

yo版本:2..0.5

1 个答案:

答案 0 :(得分:0)

socket.js文件未生成,因为最后一个角度全栈未使用socketio,而是由primus进行了更改,因此我安装了最新版本的Angullar全栈,但有很多无效的更改