将 Angular 升级到 7.2.6 后,我可以成功构建使用,ng build但是当我运行时ng test出现以下错误。我已经尝试styles.css在我的angular.json文件中调整路径,但仍然收到相同的错误。我对正在发生的事情不知所措。我也在使用 Ionic 4。
ERROR in multi ./styles.css
Module not found: Error: Can't resolve '/Users/zsoflin/Documents/GitHub/Layer/styles.css' in '/Users/zsoflin/Documents/GitHub/Layer'
resolve '/Users/zsoflin/Documents/GitHub/Layer/styles.css' in '/Users/zsoflin/Documents/GitHub/Layer'
using description file: /Users/zsoflin/Documents/GitHub/Layer/package.json (relative path: .)
Field 'browser' doesn't contain a valid alias configuration
using description file: /Users/zsoflin/Documents/GitHub/Layer/package.json (relative path: ./styles.css)
no extension
Field 'browser' doesn't contain a valid alias configuration
/Users/zsoflin/Documents/GitHub/Layer/styles.css doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
/Users/zsoflin/Documents/GitHub/Layer/styles.css.ts doesn't …Run Code Online (Sandbox Code Playgroud) 我在Angular 6中遇到路由问题。我的应用程序右侧有一个侧面菜单,当用户在页面左侧导航时,该菜单会更新。此侧面菜单不在user-dashboard列出用户项目的位置上显示。它需要显示用户选择项目的时间,从而导航到project-home。
下图显示了该组织。一旦用户到达,project-home他们应该elements-list会element-detail在左侧看到从/到主数据/明细数据的流程。独立地,在activities上右手边,用户应该能够通过选项卡点击images,notes和tasks。
更新: 这是一个说明问题的Stackblitz:https ://stackblitz.com/edit/zsoflin-routing
我很茫然,不胜感激如何构造路线的任何方向。谢谢。-扎克
app-routing.module.ts
`
const routes: Routes =[
{ path: 'user-dashboard', component: UserDashboard },
{ path: '', redirectTo: 'user-dashboard', pathMatch: 'full' },
{
path: 'project/:projectId',
component: ProjectHomePage,
children:[
{path: '', component: ElementsPage, pathMatch: 'full'},
{path: 'element/:elementId', component: ElementPage, pathMatch: 'full'},
{path: 'edit/:categoryId', component: EditFormPage, pathMatch: 'full'},
{path: 'act', component:ActivitiesPage,
children: [
{path:'images',outlet:'images',component: ImagesPage},
{path:'notes',outlet:'notes',component: NotesPage},
{path:'tasks',outlet:'tasks',component: …Run Code Online (Sandbox Code Playgroud) 我正在寻找将图像投射到android中chromecast的示例。奇怪的是,它似乎并未在googlecast示例存储库中涵盖。有人对此有一个简单的实现吗?我基本上想在我的android设备上单击应用程序照片库中的图像,然后将其投射到屏幕上。一个侧面的问题是,图像是否需要在网址上?还是可以将图像流式传输到设备?我先感谢您的帮助。