-
Notifications
You must be signed in to change notification settings - Fork 2.3k
[meta-issue] add Blocking Proxy #3375
Comments
We can do better logging - #2569 |
Note that this will be available in 5.0 behind a flag. |
not sure if this is the right place but after upgrading to protractor v5.1.0 typescript reports the following error: |
Blocking Proxy is built with TypeScript 2.1, which is what's generating that definition file. If you do |
thx @mgiambalvo! This means that TS2.1 is required for the current version of Protractor, right? if so, it should maybe be mentioned in the list of breaking changes. |
After upgrading TS, AoT does not work.
|
Ah, that's indeed the case. Angular doesn't support TS 2.1 yet (angular/angular#13294). Sorry about that, making Protractor require TS 2.1 wasn't intentional breaking change. I'll try to get a hotfix out soon that uses a version of blocking-proxy built with TS 2.0. |
thx for the clarification and your effort to provide a solution! |
After upgrade to 5.1.1 I can compile with TS 2.0 but the AoT error remains |
This is odd. It looks like the AoT compiler is picking up Blocking Proxy's
definitions, but it shouldn't even need them. After all, Protractor isn't
getting compiled into your app.
Could you share more of your project setup? Are you using angular-cli, and
if so which version? As a workaround, you could try uninstalling Protractor
from your project and installing it globally instead.
…On Tue, Feb 7, 2017 at 11:49 AM, karlhaas ***@***.***> wrote:
After upgrade to 5.1.1 I get the following error during AoT compilation:
Error: Error encountered resolving symbol values statically. Could not resolve events relative to /home/karl/Work/cnc/feedbackr/Frontend/node_modules/blocking-proxy/built/lib/webdriver_commands.d.ts., resolving symbol WebDriverCommand in /home/karl/Work/cnc/feedbackr/Frontend/node_modules/blocking-proxy/built/lib/webdriver_commands.d.ts
at SyntaxError.BaseError [as constructor] ***@***.***/compiler/bundles/compiler.umd.js:1597:31)
at new SyntaxError ***@***.***/compiler/bundles/compiler.umd.js:1795:20)
at simplifyInContext ***@***.***/compiler/bundles/compiler.umd.js:25783:27)
at StaticReflector.simplify ***@***.***/compiler/bundles/compiler.umd.js:25795:17)
at StaticReflector.annotations ***@***.***/compiler/bundles/compiler.umd.js:25287:84)
at NgModuleResolver.resolve ***@***.***/compiler/bundles/compiler.umd.js:17771:86)
at CompileMetadataResolver.getNgModuleMetadata ***@***.***/compiler/bundles/compiler.umd.js:18272:64)
at addNgModule ***@***.***/compiler/bundles/compiler.umd.js:25053:62)
at ***@***.***/compiler/bundles/compiler.umd.js:25064:18
at Array.forEach (native)
Compilation failed
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3375 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAlR7uQkUi1P30gEXP62-N9DNdSWzlyks5raK6SgaJpZM4JMp5Y>
.
|
We are using https://github.com/mgechev/angular-seed (latest version). Maybe the problem is that testing files are compiled. The copy task does:
This means that it ignores the files ending with e2e-spec.ts but not the page object files. |
@mgiambalvo we had protractor typings in tsconfig.json. |
I'm also encountering this issue with angular-cli 1.0.0-beta.32. Is there a workaround? |
Ah I see.. Entirely removing protractor from the project fixes this for now. |
@m4mbart what do you mean by "Entirely removing protractor from the project fixes this for now." |
You shouldn't need to remove protractor from package.json, just from your
typings. In other words, make sure protractor's typings aren't in your
tsconfig.
Does the default tsconfig from Angular CLI include them? I should fix that
if so ...
On Feb 21, 2017 12:42, "shaher" <[email protected]> wrote:
@m4mbart <https://github.com/m4mbart> what do you mean by "Entirely
removing protractor from the project fixes this for now."
how do that?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3375 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAlR9aeRPplFacLrYCRrnHw7YuEHcCWks5rez4JgaJpZM4JMp5Y>
.
|
Collecting issues that we'll need to reconsider (usually, because they'll be easier/improved) when we switch over to Blocking Proxy.
Background: Blocking Proxy is our plan to move logic that waits for Angular to stabilize into a separate process, a proxy which lives between the test script and the selenium endpoint, and intercept the JSON WebDriver protocol commands.
The text was updated successfully, but these errors were encountered: