Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run build failed on v10.16.2 #11

Open
muhaimincs opened this issue Feb 3, 2020 · 0 comments
Open

npm run build failed on v10.16.2 #11

muhaimincs opened this issue Feb 3, 2020 · 0 comments

Comments

@muhaimincs
Copy link

Spawned flow server (pid=89816)
Logs will go to /private/tmp/flow/zSUserszSmcszSDocumentszSzZoid-demo.log
Monitor logs will go to /private/tmp/flow/zSUserszSmcszSDocumentszSzZoid-demo.monitor_log
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ node_modules/zoid/src/parent/index.js:135:66

Cannot call tasks.getProxyContainer.then with function bound to onSuccess because property proxyWin is missing in
ZalgoPromise [1] but exists in object type [2] in type argument R [3] of the return value of type argument R [3].

     node_modules/zoid/src/parent/index.js
     132│
     133│             tasks.getProxyContainer = this.getProxyContainer(container);
     134│
     135│             tasks.renderContainer = tasks.getProxyContainer.then(proxyContainer => {
     136│                 return this.renderContainer(proxyContainer, { context, uid });
     137│             });
     138│
     139│             tasks.open = this.driver.renderedIntoContainer
     140│                 ? tasks.renderContainer.then(proxyOutlet => this.open(proxyOutlet))
        :
 [2] 316│     open(proxyOutlet? : ProxyElement) : ZalgoPromise<{ proxyWin : ProxyWindow, proxyFrame? : ProxyElement }> {
        :
 [1] 566│     renderContainer(proxyContainer : ProxyElement, { context, uid } : { context : $Values<typeof CONTEXT>, uid : string }) : ZalgoPromise<ProxyElement> {

     node_modules/zalgo-promise/src/promise.js
 [3]   7│ export class ZalgoPromise<R : mixed> {


Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ node_modules/zoid/src/parent/index.js:139:26

Cannot assign this.driver.renderedIntoContainer ? tasks.renderContainer.then(...) : this.open() to tasks.open because:
 • property proxyWin is missing in String [1] in type argument R [2].
 • property proxyWin is missing in ZalgoPromise [3] but exists in object type [4] in type argument R [2].
 • property proxyWin is missing in ZalgoPromise [3] but exists in object type [4] in type argument R [2].
 • property proxyWin is missing in String [1] in type argument R [2].
 • property proxyWin is missing in ZalgoPromise [3] but exists in object type [4] in type argument R [2].
 • all branches are incompatible:
    • Either undefined [5] is incompatible with ZalgoPromise [6] in type argument R [2] of type argument R [2].
    • Or undefined [5] is incompatible with ZalgoPromise [6] in type argument R [2] of type argument R [2].
 • property proxyWin is missing in ZalgoPromise [3] but exists in object type [4] in type argument R [2] of type
   argument R [2].
 • property proxyWin is missing in String [1] in type argument R [2].
 • property proxyWin is missing in ZalgoPromise [3] but exists in object type [4] in type argument R [2].
 • all branches are incompatible:
    • Either undefined [5] is incompatible with string [1] in type argument R [2] of type argument R [2].
    • Or undefined [5] is incompatible with string [1] in type argument R [2] of type argument R [2].
    • Or undefined [5] is incompatible with ZalgoPromise [6] in type argument R [2].
    • Or undefined [5] is incompatible with ZalgoPromise [6] in type argument R [2].
 • object type [4] is incompatible with string [1] in type argument R [2].
 • property proxyFrame is missing in String [1] in type argument R [2].
 • property proxyWin is missing in ZalgoPromise [3] but exists in object type [4] in type argument R [2].

        node_modules/zoid/src/parent/index.js
    [5]  84│     initPromise : ZalgoPromise<void>
           :
        136│                 return this.renderContainer(proxyContainer, { context, uid });
        137│             });
        138│
        139│             tasks.open = this.driver.renderedIntoContainer
        140│                 ? tasks.renderContainer.then(proxyOutlet => this.open(proxyOutlet))
        141│                 : this.open();
        142│
        143│             tasks.saveProxyWin = tasks.open.then(({ proxyWin }) => {
        144│                 this.proxyWin = proxyWin;
           :
    [1] 206│     buildWindowName({ proxyWin, initialDomain, domain, target, uid, context } : { proxyWin : ProxyWindow, initialDomain : string, domain : string | RegExp, target : CrossDomainWindowType, context : $Values<typeof CONTEXT>, uid : string }) : string {
           :
 [3][4] 316│     open(proxyOutlet? : ProxyElement) : ZalgoPromise<{ proxyWin : ProxyWindow, proxyFrame? : ProxyElement }> {

        node_modules/zalgo-promise/src/promise.js
    [2]   7│ export class ZalgoPromise<R : mixed> {
           :
    [6] 226│     then<X : mixed, Y : mixed>(onSuccess : void | (result : R) => (ZalgoPromise<X> | Y), onError : void | (error : mixed) => (ZalgoPromise<X> | Y)) : ZalgoPromise<X | Y> {


Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ node_modules/zoid/src/parent/index.js:140:61

Cannot call tasks.renderContainer.then with function bound to onSuccess because object type [1] is incompatible with
string [2] in type argument R [3] of the return value.

     node_modules/zoid/src/parent/index.js
     137│             });
     138│
     139│             tasks.open = this.driver.renderedIntoContainer
     140│                 ? tasks.renderContainer.then(proxyOutlet => this.open(proxyOutlet))
     141│                 : this.open();
     142│
     143│             tasks.saveProxyWin = tasks.open.then(({ proxyWin }) => {
        :
 [2] 206│     buildWindowName({ proxyWin, initialDomain, domain, target, uid, context } : { proxyWin : ProxyWindow, initialDomain : string, domain : string | RegExp, target : CrossDomainWindowType, context : $Values<typeof CONTEXT>, uid : string }) : string {
        :
 [1] 316│     open(proxyOutlet? : ProxyElement) : ZalgoPromise<{ proxyWin : ProxyWindow, proxyFrame? : ProxyElement }> {

     node_modules/zalgo-promise/src/promise.js
 [3]   7│ export class ZalgoPromise<R : mixed> {


Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ node_modules/zoid/src/parent/index.js:140:71

Cannot call this.open with proxyOutlet bound to proxyOutlet because:
 • inexact ZalgoPromise [1] is incompatible with exact ProxyElement [2].
 • inexact string [3] is incompatible with exact ProxyElement [2].
 • inexact ZalgoPromise [4] is incompatible with exact ProxyElement [2].

     node_modules/zoid/src/parent/index.js
     137│             });
     138
     139│             tasks.open = this.driver.renderedIntoContainer
     140│                 ? tasks.renderContainer.then(proxyOutlet => this.open(proxyOutlet))
     141│                 : this.open();
     142│
     143│             tasks.saveProxyWin = tasks.open.then(({ proxyWin }) => {
        :
 [3] 206│     buildWindowName({ proxyWin, initialDomain, domain, target, uid, context } : { proxyWin : ProxyWindow, initialDomain : string, domain : string | RegExp, target : CrossDomainWindowType, context : $Values<typeof CONTEXT>, uid : string }) : string {
        :
 [4] 270│     buildUrl() : ZalgoPromise<string> {
        :
 [2] 316│     open(proxyOutlet? : ProxyElement) : ZalgoPromise<{ proxyWin : ProxyWindow, proxyFrame? : ProxyElement }> {

     node_modules/zalgo-promise/src/promise.js
 [1] 226│     then<X : mixed, Y : mixed>(onSuccess : void | (result : R) => (ZalgoPromise<X> | Y), onError : void | (error : mixed) => (ZalgoPromise<X> | Y)) : ZalgoPromise<X | Y> {


Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ node_modules/zoid/src/parent/index.js:157:24

Cannot call ZalgoPromise.all(...).then with function bound to onSuccess because object type [1] is incompatible with
string [2] in type argument R [3] of the return value.

     node_modules/zoid/src/parent/index.js
     153│                 return proxyWin.setName(windowName);
     154│             });
     155│
     156│             tasks.prerender = ZalgoPromise.all([ tasks.open, tasks.renderContainer ]).then(([ { proxyWin }, proxyOutlet ]) => {
     157│                 return this.prerender(proxyWin, proxyOutlet, { context, uid });
     158│             });
     159
     160│             tasks.loadUrl = ZalgoPromise.all([ tasks.open, tasks.buildUrl, tasks.setWindowName, tasks.prerender ]).then(([ { proxyWin }, url ]) => {
     161│                 return proxyWin.setLocation(url);
        :
 [2] 206│     buildWindowName({ proxyWin, initialDomain, domain, target, uid, context } : { proxyWin : ProxyWindow, initialDomain : string, domain : string | RegExp, target : CrossDomainWindowType, context : $Values<typeof CONTEXT>, uid : string }) : string {
        :
 [1] 511│     prerender(proxyWin : ProxyWindow, proxyElement : ProxyElement, { context, uid } : { context : $Values<typeof CONTEXT>, uid : string }) : ZalgoPromise<{ proxyPrerenderWin : ProxyWindow, proxyPrerenderFrame : ?ProxyElement }> {

     node_modules/zalgo-promise/src/promise.js
 [3]   7│ export class ZalgoPromise<R : mixed> {


Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ node_modules/zoid/src/parent/index.js:157:49

Cannot call this.prerender with proxyOutlet bound to proxyElement because:
 • inexact ZalgoPromise [1] is incompatible with exact ProxyElement [2].
 • inexact undefined [3] is incompatible with exact ProxyElement [2].
 • inexact string [4] is incompatible with exact ProxyElement [2].
 • inexact ZalgoPromise [5] is incompatible with exact ProxyElement [2].
 • inexact ZalgoPromise [6] is incompatible with exact ProxyElement [2].

     node_modules/zoid/src/parent/index.js
 [3]  84│     initPromise : ZalgoPromise<void>
        :
     154│             });
     155
     156│             tasks.prerender = ZalgoPromise.all([ tasks.open, tasks.renderContainer ]).then(([ { proxyWin }, proxyOutlet ]) => {
     157│                 return this.prerender(proxyWin, proxyOutlet, { context, uid });
     158│             });
     159
     160│             tasks.loadUrl = ZalgoPromise.all([ tasks.open, tasks.buildUrl, tasks.setWindowName, tasks.prerender ]).then(([ { proxyWin }, url ]) => {
        :
 [4] 206│     buildWindowName({ proxyWin, initialDomain, domain, target, uid, context } : { proxyWin : ProxyWindow, initialDomain : string, domain : string | RegExp, target : CrossDomainWindowType, context : $Values<typeof CONTEXT>, uid : string }) : string {
        :
 [5] 270│     buildUrl() : ZalgoPromise<string> {
        :
 [6] 316│     open(proxyOutlet? : ProxyElement) : ZalgoPromise<{ proxyWin : ProxyWindow, proxyFrame? : ProxyElement }> {
        :
 [2] 511│     prerender(proxyWin : ProxyWindow, proxyElement : ProxyElement, { context, uid } : { context : $Values<typeof CONTEXT>, uid : string }) : ZalgoPromise<{ proxyPrerenderWin : ProxyWindow, proxyPrerenderFrame : ?ProxyElement }> {

     node_modules/zalgo-promise/src/promise.js
 [1] 226│     then<X : mixed, Y : mixed>(onSuccess : void | (result : R) => (ZalgoPromise<X> | Y), onError : void | (error : mixed) => (ZalgoPromise<X> | Y)) : ZalgoPromise<X | Y> {


Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ node_modules/zoid/src/parent/index.js:164:54

Cannot call tasks.open.then with function bound to onSuccess because:
 • property proxyWin is missing in ZalgoPromise [1] in the first argument.
 • property proxyWin is missing in undefined [2] in the first argument.
 • property proxyWin is missing in String [3] in the first argument.

     node_modules/zoid/src/parent/index.js
 [2]  84│     initPromise : ZalgoPromise<void>
        :
     161│                 return proxyWin.setLocation(url);
     162│             });
     163│
     164│             tasks.watchForClose = tasks.open.then(({ proxyWin }) => {
     165│                 return this.watchForClose(proxyWin);
     166│             });
     167
     168│             tasks.onDisplay = tasks.prerender.then(() => {
     169│                 return this.props.onDisplay();
        :
 [3] 206│     buildWindowName({ proxyWin, initialDomain, domain, target, uid, context } : { proxyWin : ProxyWindow, initialDomain : string, domain : string | RegExp, target : CrossDomainWindowType, context : $Values<typeof CONTEXT>, uid : string }) : string {

     node_modules/zalgo-promise/src/promise.js
 [1] 226│     then<X : mixed, Y : mixed>(onSuccess : void | (result : R) => (ZalgoPromise<X> | Y), onError : void | (error : mixed) => (ZalgoPromise<X> | Y)) : ZalgoPromise<X | Y> {


Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ node_modules/zoid/src/parent/index.js:172:51

Cannot call tasks.open.then with function bound to onSuccess because:
 • property proxyWin is missing in ZalgoPromise [1] in the first argument.
 • property proxyWin is missing in undefined [2] in the first argument.
 • property proxyWin is missing in String [3] in the first argument.

     node_modules/zoid/src/parent/index.js
 [2]  84│     initPromise : ZalgoPromise<void>
        :
     169│                 return this.props.onDisplay();
     170│             });
     171│
     172│             tasks.openBridge = tasks.open.then(({ proxyWin }) => {
     173│                 return this.openBridge(proxyWin, initialDomain, context);
     174│             });
     175
     176│             tasks.switchPrerender = ZalgoPromise.all([ tasks.open, tasks.prerender, tasks.init ]).then(([ { proxyFrame }, { proxyPrerenderFrame } ]) => {
     177│                 return this.switchPrerender({ proxyFrame, proxyPrerenderFrame });
        :
 [3] 206│     buildWindowName({ proxyWin, initialDomain, domain, target, uid, context } : { proxyWin : ProxyWindow, initialDomain : string, domain : string | RegExp, target : CrossDomainWindowType, context : $Values<typeof CONTEXT>, uid : string }) : string {

     node_modules/zalgo-promise/src/promise.js
 [1] 226│     then<X : mixed, Y : mixed>(onSuccess : void | (result : R) => (ZalgoPromise<X> | Y), onError : void | (error : mixed) => (ZalgoPromise<X> | Y)) : ZalgoPromise<X | Y> {


Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ node_modules/zoid/src/parent/index.js:176:125

Property proxyPrerenderFrame is missing in undefined [1].

 [1]  84│     initPromise : ZalgoPromise<void>
        :
     173│                 return this.openBridge(proxyWin, initialDomain, context);
     174│             });
     175│
     176│             tasks.switchPrerender = ZalgoPromise.all([ tasks.open, tasks.prerender, tasks.init ]).then(([ { proxyFrame }, { proxyPrerenderFrame } ]) => {
     177│                 return this.switchPrerender({ proxyFrame, proxyPrerenderFrame });
     178│             });
     179



Found 31 errors

Only showing the most relevant union/intersection branches.
To see all branches, re-run Flow with --show-all-branches
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! zoid-demo@1.0.4 flow: `flow`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the zoid-demo@1.0.4 flow script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/mcs/.npm/_logs/2020-02-03T08_13_27_068Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! zoid-demo@1.0.4 test: `npm run lint && npm run flow-typed && npm run flow && npm run karma`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the zoid-demo@1.0.4 test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/mcs/.npm/_logs/2020-02-03T08_13_27_104Z-debug.log
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant