有人可以告诉我-
我添加了 从'@ ng-bootstrap / ng-bootstrap'导入{NgbModule}; 我的.net核心+ angular项目的组件之一中的Angular引导程序。
从那时起,我开始出现错误- 像这样在webpackMissingModule上找不到模块“ rxjs / operators”-
Prerendering failed because of error: Error: Cannot find module
"rxjs/operators"
at webpackMissingModule
(E:\REPRIMX\PULSEMUSIC\PulseMusic.Web\PulseMusic.Web\ClientApp\dist\main-
server.js:11627:195)
at NgbAccordionConfig.decorators.type
(E:\REPRIMX\PULSEMUSIC\PulseMusic.Web\PulseMusic.Web\ClientApp\dist\main-
server.js:11627:286)
at Object.<anonymous>
(E:\REPRIMX\PULSEMUSIC\PulseMusic.Web\PulseMusic.Web\ClientApp\dist\main-
server.js:11630:2)
at __webpack_require__
(E:\REPRIMX\PULSEMUSIC\PulseMusic.Web\PulseMusic.Web\ClientApp\dist\main-
server.js:20:30)
虽然我用过
npm我-保存rxjs-compat
它没有解决。
我的cli版本是6.0.8 rxjs是5.4.2 角度是4.2.5
这里是我的整个package.json供您细读和仔细检查-
{
"name": "PulseMusic.Web",
"private": true,
"version": "0.0.0",
"scripts": {
"test": "karma start ClientApp/test/karma.conf.js"
},
"dependencies": {
"@angular/animations": "4.2.5",
"@angular/common": "4.2.5",
"@angular/compiler": "4.2.5",
"@angular/compiler-cli": "4.2.5",
"@angular/core": "4.2.5",
"@angular/forms": "4.2.5",
"@angular/http": "4.2.5",
"@angular/platform-browser": "4.2.5",
"@angular/platform-browser-dynamic": "4.2.5",
"@angular/platform-server": "4.2.5",
"@angular/router": "4.2.5",
"@ng-bootstrap/ng-bootstrap": "^4.0.0",
"@ngtools/webpack": "1.5.0",
"@reactivex/rxjs": "^5.5.3",
"@types/webpack-env": "1.13.0",
"angular-webstorage-service": "^1.0.2",
"angular2-template-loader": "0.6.2",
"aspnet-prerendering": "^3.0.1",
"aspnet-webpack": "^2.0.1",
"awesome-typescript-loader": "3.2.1",
"bootstrap": "3.3.7",
"css": "^2.2.4",
"css-loader": "0.28.4",
"es6-shim": "0.35.3",
"event-source-polyfill": "0.0.9",
"expose-loader": "0.7.3",
"extract-text-webpack-plugin": "2.1.2",
"file-loader": "0.11.2",
"html-loader": "0.4.5",
"isomorphic-fetch": "2.2.1",
"jquery": "3.2.1",
"json-loader": "0.5.4",
"preboot": "4.5.2",
"raw-loader": "0.5.1",
"reflect-metadata": "0.1.10",
"rxjs": "5.4.2",
"rxjs-compat": "^6.3.3",
"style-loader": "0.18.2",
"to-string-loader": "1.1.5",
"typescript": "2.4.1",
"url-loader": "0.5.9",
"webpack": "2.5.1",
"webpack-hot-middleware": "2.18.2",
"webpack-merge": "4.1.0",
"zone.js": "0.8.12"
},
"devDependencies": {
"@types/chai": "4.0.1",
"@types/jasmine": "2.5.53",
"chai": "4.0.2",
"jasmine-core": "2.6.4",
"karma": "1.7.0",
"karma-chai": "0.1.0",
"karma-chrome-launcher": "2.2.0",
"karma-cli": "1.0.1",
"karma-jasmine": "1.1.0",
"karma-webpack": "2.0.3"
}
}
我应该遵循的下一步是什么?如何解决这个问题?你能指导我一步一步吗? 非常感谢,