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

[Help] Failed preload + window.ipcRenderer is undefined #200

Open
alexander-ye opened this issue Feb 17, 2024 · 1 comment
Open

[Help] Failed preload + window.ipcRenderer is undefined #200

alexander-ye opened this issue Feb 17, 2024 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@alexander-ye
Copy link

alexander-ye commented Feb 17, 2024

Screenshot 2024-02-17 at 10 55 06

On initialization (using yarn install and yarn run dev), I receive a sequence of errors:

VM123 sandbox_bundle:2 Unable to load preload script: /Users/aerypro/git/acwms-electron/dist-electron/preload/index.mjs
Error: ENOENT: no such file or directory, open '/Users/aerypro/git/acwms-electron/dist-electron/preload/index.mjs'
chunk-PP72ARUD.js?v=6603f438:16657 Uncaught TypeError: Cannot read properties of undefined (reading 'on')
    at index.tsx:89:24
    at commitHookEffectListMount (chunk-PP72ARUD.js?v=6603f438:16902:34)
    at commitPassiveMountOnFiber (chunk-PP72ARUD.js?v=6603f438:18150:19)
    at commitPassiveMountEffects_complete (chunk-PP72ARUD.js?v=6603f438:18123:17)
    at commitPassiveMountEffects_begin (chunk-PP72ARUD.js?v=6603f438:18113:15)
    at commitPassiveMountEffects (chunk-PP72ARUD.js?v=6603f438:18103:11)
    at flushPassiveEffectsImpl (chunk-PP72ARUD.js?v=6603f438:19484:11)
    at flushPassiveEffects (chunk-PP72ARUD.js?v=6603f438:19441:22)
    at chunk-PP72ARUD.js?v=6603f438:19322:17
    at workLoop (chunk-PP72ARUD.js?v=6603f438:195:42)

and a bunch of other errors that start with a failed preload. How to address?

Full logs:
Screenshot 2024-02-17 at 10 57 45

@alexander-ye alexander-ye added the help wanted Extra attention is needed label Feb 17, 2024
@RSS1102
Copy link
Member

RSS1102 commented Feb 17, 2024

  1. First, make sure that you execute all the 'yarn install' correctly and correctly.
  2. You may need to pay attention to your Node.js version in addition to this(recommended versions 18-20).

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants