stbui / angular-material-app

基于最新Angular 11框架与Material 2技术的web中后台前端应用框架。
https://stbui.github.io/angular-material-app/index.html
MIT License
517 stars 175 forks source link

error TS2307: Cannot find module 'rxjs/websocket'. #39

Closed christiansiewert closed 6 years ago

christiansiewert commented 6 years ago

我运行“npm run start”时出错:

ERROR in src/app/component/websocket/websocket.service.ts(16,58): error TS2307: Cannot find module 'rxjs/websocket'.

你知道出了什么问题吗?

最好的问候, Christian

christiansiewert commented 6 years ago

Hmm...it was a CamelCase-problem. Are you developing under windows? In src/app/component/websocket/websocket.service.ts:16:

import { WebSocketSubject, WebSocketSubjectConfig } from 'rxjs/web>>s<<ocket';

When changing the s to a UpperCase-letter, it's working like a charm.

Big thanks for this awesome project!

Best, Christian