-
Notifications
You must be signed in to change notification settings - Fork 47
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
Webpack-related build error #234
Comments
Yes, this is most likely related to node 23, see more here I don't use require() anywhere in my code so the issue is likely in one of the dependencies. Can you run webpack with |
OK no matter what I try I get the same error loading config. can you be more specific with the commands I need? thanks. |
Run |
OK:
|
Any changes you make will fix the manual build, and it will git the -git package but will not fix the regular trgui-ng arch package as it will pull up the last release. You will either have to put out a new release, OR I can make a patch downstream to patch the code prior to build which would fix it downstream until you're ready to make a new release. Just let me know. However, I am not sure how such a patch would affect the automatic AUR update you have going. |
For some reason node insists on loading them as commonjs despite "type": "module" in package.json. This leads to import errors in node 23. Issue #234
I pushed a fix. There is something funny going on with module type detection and I suspect node is not behaving according to it's spec but I don't have a lot of time to dig deep and the workaround I pushed is good enough. If you can add a patch that uses the commit above that should fix it until next stable release. For next release patch will not be needed, my ci job will work fine, we will probably just have to remove the no longer used patch file manually. |
OK. I will test n ow and work on a patch tomorrow night, don't have time today. |
Yes, it works now. thanks! I'll be in touch later tomorrow night. |
OK I patched it quickly now. Pushed to AUR. Please note that when I reran the shasums for the pkgbuild, it now calculated a shasum for the git repository itself, whereas before it was set to 'SKIP'. We might need to manually switch it back to skip; but, if you can make it so that the shasums auto-update as well, then that would be even better. |
I am not sure how to calculate sha sum of a whole repo. Is it done by some arch specific tool? |
that, my friend, is a good question. When we first made the package, it was coming up as 'SKIP' so it might be a relatively new thing. I will try to ask in some arch-related forums next week and get back to you. I do know that if you add a github page to the sources of a pkgbuild but don't remember to put git+https in front of it, it will download it as a file, not a directory; perhaps it has something to do with that. |
Yeah looks like a new thing: I'm not sure it's worth the effort to run in ci job. If we do nothing it will just go back to SKIP. |
it'll either go back to skip or it'll have a mismatch that needs to be manually switched back to skip, not sure which one. |
It will go back to skip, that's what is in our template https://github.com/openscopeproject/TrguiNG/blob/master/ci/generate_pkgbuild.py#L39 |
Hi, someone alerted me on the AUR page that it is failing to build. I was able to replicate both from the AUR package and building manually. This only cropped up sometime AFTER you released the latest stable version. I do believe that it is probably related to a recent update on a dependency. If I had to guess, I would say that it is probably related to the nodejs update to 23.1 on October 25th, but you would probably know better than me. This is the output I get from the build command:
The text was updated successfully, but these errors were encountered: