vercel / next.js

The React Framework
https://nextjs.org
MIT License
126.83k stars 26.96k forks source link

After build in project with-electron-typescript-app ,the page where getStaticPaths is declared does not load normally. #43274

Open devyu2 opened 1 year ago

devyu2 commented 1 year ago

Verify canary release

Provide environment information

✗ npx --no-install next info Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 20.5.0: Sat May 8 05:10:31 PDT 2021; root:xnu-7195.121.3~9/RELEASE_ARM64_T8101 Binaries: Node: 16.15.0 npm: 8.5.5 Yarn: 3.3.0 pnpm: N/A Relevant packages: next: 13.0.4 eslint-config-next: N/A react: 18.2.0 react-dom: 18.2.0

Which example does this report relate to?

with-electron-typescript-app

What browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

electron-builder --dir

Describe the Bug

image image

Expected Behavior

The page where getStaticPath is declared should load normally.

To Reproduce

  1. $ yarn create next-app --example with-electron-typescript with-electron-typescript-app
  2. $ yarn install
  3. $ yarn pack-app
  4. move dist folder app
  5. run ElectronTypescriptNext app
  6. With Initial Props Link Click
elliot-huffman commented 10 months ago

Same issue here, it looks like the examples are out of date as they use a dependency that has not been updated to support Next 14. I would like to propose that this example is changed so that the dependency is not required and that the project can run standalone with just Next and Electron/Electron-Builder/Forge.