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

[RESOLVED + SOLUTION] Building results in an empty page and errors during build #511

Open
Hamtaro25565 opened this issue Nov 12, 2024 · 2 comments

Comments

@Hamtaro25565
Copy link

Hamtaro25565 commented Nov 12, 2024

Hi there,

I know there is quite a lot of issue requests made, and I know pulling another one will only add more to it, but this is quite a breaking change. I use Nextron as my framework to use Electron and NextJS together, so this is quite a big issue to me as I cannot build my project.

When running npm run build it compiles the project and makes it into an executable as you may know, however, the issue is when you run the compiled executable, it only returns an empty page.

After analysing what could be the problem, it seems to not find the URL when it is built and instead returns to the URL of chrome-error://chromewebdata/ which is what happens when the URL could not be found.

I used the tailwind template with the exact same NPM commands to set up the project, with the only change being made is the project name.

It seems to be replicated when you run the commands npx create-nextron-app customappname --example with-tailwindcss, npm install, and lastly npm run build.

Can anyone else see if this is an issue they are getting also? :)

@Hamtaro25565
Copy link
Author

Just a follow up, I tried this with no templates and found the same issue.

I wonder if this could be Next JS not compiling properly and doesn't get embedded with Electron? If anyone can replicate this issue, please let me know so I can see if this is a me problem.

Running the compiled version on 3 different devices yielded with the same result.

I compiled using 3 different versions, with a template, with no template, and a fork of this project.

Anyone know a potential fix for this problem?

@Hamtaro25565 Hamtaro25565 changed the title Building results in an empty page [RESOLVED + SOLUTION] Building results in an empty page and errors during build Nov 19, 2024
@Hamtaro25565
Copy link
Author

After some digging around, I have found the issue with building your project that comes with errors.

The issues arise from the latest Node.JS update versions 23.0.0 and above.

Using the LTS release of 22.11.0 has fixed all of the issues with building and other issues.

Please downgrade to the LTS release if you have problems.

I will not close this issue just in case someone has the same issue until a later date, unless closed by the developer of this project.

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

No branches or pull requests

1 participant