Skip to content

Beta 32 AoT fails on Protractor typings #4865

Description

@m4mbart

When trying to make an AoT/prod build with Beta 32 I run into the following error:

ERROR in Error encountered resolving symbol values statically. Could not resolve events relative to /Users//node_modules/blocking-proxy/built/lib/webdriver_commands.d.ts., resolving symbol WebDriverCommand in /Users//node_modules/blocking-proxy/built/lib/webdriver_commands.d.ts

ERROR in ./src/main.ts
Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in '/Users***/src'
@ ./src/main.ts 4:0-74
@ multi ./src/main.ts

An issue has been made in the protractor repository about this. See:
See: angular/protractor#3375

It has something todo with Typescript 2.1

As a workaround I have removed protractor from the project for now. But this is of course not ideal.

OS?

Mac OSX

Versions.

@angular/cli: 1.0.0-beta.32.3 [1.0.0-beta.15]
node: 6.9.5
os: darwin x64
@angular/common: 2.4.8
@angular/compiler: 2.4.8
@angular/core: 2.4.8
@angular/forms: 2.4.8
@angular/http: 2.4.8
@angular/platform-browser: 2.4.8
@angular/platform-browser-dynamic: 2.4.8
@angular/router: 3.4.8
@angular/cli: 1.0.0-beta.32.3
@angular/compiler-cli: 2.4.8

Repro steps.

ng build --prod --aot --env=dev --sm false --base-href="/app/"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions