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

Cannot cleanup: TypeError: Cannot read property 'provider' of null #4768

Closed
l1bbcsg opened this issue Mar 11, 2020 · 5 comments
Closed

Cannot cleanup: TypeError: Cannot read property 'provider' of null #4768

l1bbcsg opened this issue Mar 11, 2020 · 5 comments
Labels

Comments

@l1bbcsg
Copy link

l1bbcsg commented Mar 11, 2020

  • Version: 22.4.0
  • Target: MacOS default

Trying to run minimal setup:

# in an empty directory
npm init --yes
npm install --save-dev electron electron-builder
echo "console.log('foo')" >> index.js
npx electron-builder

I get the following (formatted as output by electron-builder, some personal data censored):

  • electron-builder  version=22.4.0 os=18.7.0
  • description is missed in the package.json  appPackageFile=/path/to/app/package.json
  • writing effective config  file=dist/builder-effective-config.yaml
  • packaging       platform=darwin arch=x64 electron=8.1.1 appOutDir=dist/mac
  • default Electron icon is used  reason=application icon is not set
  • Cannot detect repository by .git/config. Please specify "repository" in the package.json (https://docs.npmjs.com/files/package.json#repository).
Please see https://electron.build/configuration/publish
  • skipped macOS application code signing  reason=cannot find valid "Developer ID Application" identity or custom non-Apple code signing certificate, see https://electron.build/code-signing allIdentities=
                                                ... personal data removed ...
                                                   5 identities found

                                                Valid identities only
                                                   0 valid identities found
  • building        target=macOS zip arch=x64 file=dist/builder-1.0.0-mac.zip
  • building        target=DMG arch=x64 file=dist/builder-1.0.0.dmg
  • building block map  blockMapFile=dist/builder-1.0.0.dmg.blockmap
  • Cannot detect repository by .git/config. Please specify "repository" in the package.json (https://docs.npmjs.com/files/package.json#repository).
Please see https://electron.build/configuration/publish
  • Cannot detect repository by .git/config. Please specify "repository" in the package.json (https://docs.npmjs.com/files/package.json#repository).
Please see https://electron.build/configuration/publish
  • building embedded block map  file=dist/builder-1.0.0-mac.zip
  • Cannot detect repository by .git/config. Please specify "repository" in the package.json (https://docs.npmjs.com/files/package.json#repository).
Please see https://electron.build/configuration/publish
  ⨯ Cannot cleanup:

Error #1 --------------------------------------------------------------------------------
TypeError: Cannot read property 'provider' of null
    at createUpdateInfoTasks (/path/to/app/node_modules/app-builder-lib/src/publish/updateInfoBuilder.ts:110:44)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)

Error #2 --------------------------------------------------------------------------------
TypeError: Cannot read property 'provider' of null
    at createUpdateInfoTasks (/path/to/app/node_modules/app-builder-lib/src/publish/updateInfoBuilder.ts:110:44)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)  stackTrace=
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Error: Cannot cleanup:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Error #1 --------------------------------------------------------------------------------
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            TypeError: Cannot read property 'provider' of null
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                at createUpdateInfoTasks (/path/to/app/node_modules/app-builder-lib/src/publish/updateInfoBuilder.ts:110:44)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                at processTicksAndRejections (internal/process/task_queues.js:93:5)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Error #2 --------------------------------------------------------------------------------
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            TypeError: Cannot read property 'provider' of null
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                at createUpdateInfoTasks (/path/to/app/node_modules/app-builder-lib/src/publish/updateInfoBuilder.ts:110:44)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                at processTicksAndRejections (internal/process/task_queues.js:93:5)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                at throwError (/path/to/app/node_modules/builder-util/src/asyncTaskManager.ts:90:11)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                at checkErrors (/path/to/app/node_modules/builder-util/src/asyncTaskManager.ts:53:9)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                at AsyncTaskManager.awaitTasks (/path/to/app/node_modules/builder-util/src/asyncTaskManager.ts:58:5)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                at PublishManager.awaitTasks (/path/to/app/node_modules/app-builder-lib/src/publish/PublishManager.ts:210:28)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                at /path/to/app/node_modules/app-builder-lib/src/index.ts:94:32
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                at executeFinally (/path/to/app/node_modules/builder-util/src/promise.ts:25:9)

The same happens with some basic project configuration (appId, name and icon) and a proper electron application. It seems some publish configuration is either mandatory despite what the docs say or mishandled. Considering I did not specify any publish options, I don't think that part of the code was supposed to run in the first place.

@thomsa
Copy link

thomsa commented May 4, 2020

I managed to get around this error with specifying publish to be null.

image

@atiqg
Copy link

atiqg commented Jun 30, 2020

I managed to get around this error with specifying publish to be null.

image

This works, now ci is working without error but I need generated files as release....

@stale
Copy link

stale bot commented Aug 29, 2020

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the backlog label Aug 29, 2020
@stale stale bot closed this as completed Sep 5, 2020
@wangzongming
Copy link

I managed to get around this error with specifying publish to be null.
image

This works, now ci is working without error but I need generated files as release....

is solved?

@532604872
Copy link

532604872 commented Feb 3, 2021

`
⨯ Cannot cleanup:

Error #1 --------------------------------------------------------------------------------
TypeError: Cannot read property 'provider' of null
at createUpdateInfoTasks (/Users/zero/yh/gitlab/windows-pos-h5.git/node_modules/app-builder-lib/src/publish/updateInfoBuilder.ts:110:44)

Error #2 --------------------------------------------------------------------------------
TypeError: Cannot read property 'provider' of null
at createUpdateInfoTasks (/Users/zero/yh/gitlab/windows-pos-h5.git/node_modules/app-builder-lib/src/publish/updateInfoBuilder.ts:110:44) stackTrace=
`
My solution is change package.json, set publish to be null.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants