Skip to content

Instantly share code, notes, and snippets.

@Aid19801
Created February 1, 2020 07:27
Show Gist options
  • Save Aid19801/3ca0ca4c820fd24cdeb886ddaeb3a0e4 to your computer and use it in GitHub Desktop.
Save Aid19801/3ca0ca4c820fd24cdeb886ddaeb3a0e4 to your computer and use it in GitHub Desktop.
electron package build error

Uncaught Error: Cannot find module 'react' Require stack:

  • /Applications/ElectronReact.app/Contents/Resources/app.asar/node_modules/react-countup/build/index.js

  • /Applications/ElectronReact.app/Contents/Resources/app.asar/app.html at Module._resolveFilename (internal/modules/cjs/loader.js:717) at Function../lib/common/reset-search-paths.ts.Module._resolveFilename (reset-search-paths.ts:40) at Module._load (internal/modules/cjs/loader.js:622) at Module._load (electron/js2c/asar.js:717) at Function.Module._load (electron/js2c/asar.js:717) at Module.require (internal/modules/cjs/loader.js:775) at require (internal/modules/cjs/helpers.js:68) at Object. (/Applications/ElectronReact.app/Contents/Resources/app.asar/node_modules/react-countup/build/index.js:8) at Object. (/Applications/ElectronReact.app/Contents/Resources/app.asar/node_modules/react-countup/build/index.js:600) at Module._compile (internal/modules/cjs/loader.js:880)

    internal/modules/cjs/loader.js:720

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