我按照创建了一个星云页面,但是它会引发多个错误,如下所示:
01: 'nb-sidebar' is not a known element:
1. If 'nb-sidebar' is an Angular component, then verify that it is part of this module.
2. If 'nb-sidebar' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas
我在设置星云侧边栏时遇到了麻烦,因为我遇到了错误:
If 'nb-card' is an Angular component, then verify that it is part of this module.
src/app/pages/components/dashboard/dashboard.component.html:5:2中的错误-错误NG8001:‘nb-卡’不是已知的元素:
If 'nb-card‘是一个角型组件,然后验证它是该模块的一部分。,如果’nb-卡‘是一个Web组件,则将'CUSTOM_ELEMENTS_SCHEMA’添加到该组件
我得到了这个编译器错误。有人能告诉我我需要安装哪个nebular模块来修复这个问题吗? Failed to compile.
./src/styles.scss (./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!
./node_modules/postcss-loader/src??embedded!./node_modules/sass-loader/lib/loader.js??ref--14-3!./src/styles.scss)
M
我用“尝试”做一个角度上的Dialog。通过使用nebular。单击“contact组件在何处”按钮时,我希望打开contact-list组件。但这是一个错误堡垒。
ContactListComponent.html:1 ERROR Error: No component factory found for ContactComponent. Did you add it to @NgModule.entryComponents?
我该怎么做才好呢。
contact-list.component.html
<nb-card>
<nb-card-header>
升级到第13角后,我对auth机构产生了问题。我正在使用Nebular对Azure的Firebase身份验证。当前,在页面加载中,我得到了以下错误:
zone.js:1063 Unhandled Promise rejection: (0 , tslib__WEBPACK_IMPORTED_MODULE_5__.__rest) is not a function ; Zone: <root> ; Task: Promise.then ; Value: TypeError: (0 , tslib__WEBPACK_IMPORTED_MODULE_5__.__rest) is not
我无法设置星云步进器创建后的selectedIndex。当我点击按钮时,我从模板中看到变量被更新了,但是stepper没有改变。 我认为问题是步进器在一个模式中,所以我在StackBlitz ( example )上构建了一个MWE,但在这里它是有效的!也许问题是从http get JSON获取选项卡的内容。 我尝试使用setTimeOut、zone.run()、ChangeDetectorRef等。但选项卡从不更改(事件从未触发?)。如何以编程方式设置可见选项卡? 根据我需要设置第二步或第三步的条件,一种解决方法是在需要时隐藏第二步,但在这种情况下,问题是nbStepperNext不考虑步
我正在尝试设置到我的应用程序目录中组件的路由。出于某种原因,我保留了这个错误Invalid configuration of route 'auth'. One of the following must be provided: component, redirectTo, children or loadChildren。我认为AuthComponent是以未定义的形式出现的,但我不明白为什么。我不是angular方面的专家,所以我可能只是犯了一个语法错误。非常感谢您的帮助! 下面是我的app-routing.module.ts: import { ExtraOption
我在下面的导入中遇到语法错误。有谁能告诉我怎么解决这个问题吗? All imports in import declaration are unused.ts(6192) 模块‘“../../Users/denisputnam/git/nb-niche-app/node_modules/@nebular/theme”’没有导出的成员“NbSortDirection”。你是说'NbLayoutDirection‘吗?ts(2724) direction.service.d.ts(6,21):这里声明了’NbLayoutDirection‘。 import { NbSortDirecti
我的nebular面板版本5.0.0使用了角9,并且工作得很好,我升级到了6.0.0版本,它使用了角10 (通过升级package.json中的版本),现在在dev服务器上,一切都工作得很好,但是在部署到生产服务器( apache )之后,我在使用HttpClient调用一个简单的get请求时出错。
TypeError: Object(...) is not a function
at t.intercept (main-es2015.e7f064813bf8e3e8865e.js:1)
at E.handle (main-es2015.e7f064813bf8e3e8865e
我有一个angular7应用程序,它直接在本地环境中运行,没有错误。然后,我将angular应用程序的构建(通过使用ng build命令)上传到Aws S3,这也很好用。但是,当我将产品构建(通过使用命令ng build --prod --aot)上传到Aws S3时,它抛出了如下错误 TypeError: this.router.events.filter is not a function 我在我的整个项目中搜索了这个this.router.events.filter,并注释掉了那个部分,然后在本地机器上再次运行该应用程序,所以它工作得很好,但是当我再次上传该应用程序的生产版本时,它仍然