Flex-layout: Bazel install fails

Created on 22 Jun 2019  路  6Comments  路  Source: angular/flex-layout

Bug Report

What is the expected behavior?

Not to fail

What is the current behavior?

Fails with error:

Error during template compile of 'FlexLayoutServerModule'
  Could not resolve @angular/platform-server relative to [object Object]. in 'SERVER_PROVIDERS'
    'SERVER_PROVIDERS' contains the error at @angular/flex-layout/server/typings/index.ts(102,42).

What are the steps to reproduce?

Running ng add @angular/bazel on existing app

What is the use-case or motivation for changing an existing behavior?

Wanted to try out bazel, but got this error, no idea what is the issue

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

    "@angular/core": "8.0.2",
    "@angular/flex-layout": "8.0.0-beta.26",
    "@angular/material": "8.0.1",
    "@angular/bazel": "8.0.2",
    "typescript": "3.4.5"
in-progress investigation

Most helpful comment

Using npm i @angular/platform-server helps solve the install crash.

All 6 comments

cc @gregmagolan

Are there any updates on this issue?

Using npm i @angular/platform-server helps solve the install crash.

Are there any updates on this issue?

Would love to use this package along with Bazel, awaiting updates as well....

any concrete solution?

@BojanKogoj's solution works for me. Just add @angular/platform-server before adding @angular/bazel to the app.

Was this page helpful?
0 / 5 - 0 ratings