question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No valid export — Error with electron-builder 22.10.5

See original GitHub issue
  • 22.10.5:
  • 9.2.0:

I updated electron-builder dependency but now the build through this error

• electron-builder  version=22.10.5 os=20.3.0
  • loaded configuration  file=package.json ("build" field)
  • writing effective config  file=dist/builder-effective-config.yaml
  ⨯ No valid exports main found for '/Users/iceballos/GitHub/mistica-manager/node_modules/js-yaml'  stackTrace=Error: No valid exports main found for '/Users/iceballos/GitHub/mistica-manager/node_modules/js-yaml'
at resolveExportsTarget (internal/modules/cjs/loader.js:625:9)
at applyExports (internal/modules/cjs/loader.js:502:14)
at resolveExports (internal/modules/cjs/loader.js:551:12)
at Function.Module._findPath (internal/modules/cjs/loader.js:657:22)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:960:27)
at Function.Module._load (internal/modules/cjs/loader.js:855:27)
at Module.require (internal/modules/cjs/loader.js:1033:19)
at require (internal/modules/cjs/helpers.js:72:18)
at _jsYaml (/Users/iceballos/GitHub/mistica-manager/node_modules/builder-util/src/util.ts:8:1)
at serializeToYaml (/Users/iceballos/GitHub/mistica-manager/node_modules/builder-util/src/util.ts:32:10)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
mmaiettacommented, Mar 2, 2021

Friendly ping to follow up on ☝️ 🙂 Will close otherwise.

0reactions
mmaiettacommented, Feb 19, 2021

@yceballost can you try returning a Promise instead of an async-await from your afterSignHook.js? Ref: #2613

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to build on windows with 22.10.5 · Issue #5668 - GitHub
Building on an Azure DevOps build server. I have 2 builds and the only difference between a working and an non-working is the...
Read more >
Code Signing - electron-builder
However, it is not possible to export the EV Certificate as it is bound to a physical USB dongle. Thus, you can't export...
Read more >
electron-builder - npm
A complete solution to package and build a ready for distribution Electron app for MacOS, Windows and Linux with “auto update” support out ......
Read more >
Can't Add Icon To Electron App With Electron Builder
These properties are valid: The title of the app should be given in productName property. The title keyword is invalid according to the ......
Read more >
vue-cli-plugin-electron-builder - Bountysource
A Vue Cli 3 plugin for Electron with no required configuration ... then : Error: Electron failed to install correctly, please delete node_modules/electron...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found