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

fonteditor-core build error with yarn and laravel-mix #54

Closed
michaelharrod opened this issue Jan 5, 2023 · 2 comments
Closed

fonteditor-core build error with yarn and laravel-mix #54

michaelharrod opened this issue Jan 5, 2023 · 2 comments

Comments

@michaelharrod
Copy link

Hello. I am helping to maintain some code that was set up by someone who has left the organization. I'm having some trouble building the project on a new Windows 11 machine, this seemed to work fine on my previous Windows 10 machine.

I'm running this command.
yarn mix build

It gets part way through the build and then raises an error.

image
image

It seems to emit the entire contents of woff2.js and encounters some sort of fetch error.

abort(TypeError: fetch failed) at Error at jsStackTrace (C:\Development\MyCompany\Src\Assets\Web\node_modules\fonteditor-core\woff2\woff2.js:8:22389) at stackTrace (C:\Development\MyCompany\Src\Assets\Web\node_modules\fonteditor-core\woff2\woff2.js:8:22560) at process.abort (C:\Development\MyCompany\Src\Assets\Web\node_modules\fonteditor-core\woff2\woff2.js:8:18310) at process.emit (node:events:513:28) at emit (node:internal/process/promises:149:20) at processPromiseRejections (node:internal/process/promises:283:27) at process.processTicksAndRejections (node:internal/process/task_queues:96:32) (Use node --trace-uncaught ... to show where the exception was thrown)

I appreciate that this might be specific to my machine and not necessarily a fonteditor-core issue, but I'd really appreciate some guidance on where to go next to get this build working. I don't have a lot of experience with node, yarn, alpine, tailwind etc. but they seem to be part of the technology mix we are now supporting. Thanks!

@michaelharrod
Copy link
Author

Incidentally, after much Googling and reading GitHub issues, I found it seems to be related to this:
nodejs/undici#1602

In this instance, downgrading to Node v16.19.0 allowed the build to succeed again. I don't consider rolling back to earlier versions to be a permanent fix, but the IPv4 vs IPv6 DNS ordering change in Node v17 seems to have caused so many unresolved headaches that I might stick with this until things stabilise,

@kekee000
Copy link
Owner

woff2.js will not download assets when running.I guess when we use webpack to build project, the analyze scripts cause this problem, ignore woff2.js on build, and use async require this script file.

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

2 participants