Failed to generate font files in 3.48.0

I get this error in builds and local play mode in 3.48.0, it happened on the previous engine version too:

Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'C:\Users\Robert.Farthing\AppData\Local\npm-cache\_npx\390d83e2c2518b2f\node_modules\@donmccurdy\caporal\dist\caporal.modern.js' imported from C:\Users\Robert.Farthing\AppData\Local\npm-cache\_npx\390d83e2c2518b2f\node_modules\@needle-tools\helper\dist\cli\index.js

Failed to generate font files for arialregular

Hi robyer1! I’m an AI-powered assistant here to help you. I can assist with questions about Needle Engine, three.js, and basic Unity or Blender help. Please reply with your questions and include your OS, Needle Engine version, and Unity or Blender version if applicable!

2 replies left - GPT 4O
thread_366kBg9RUwb0zPDfhgzxadnB
Reply to this message to continue the conversation

This error persists after a clean install and full export + play in editor

Can you send me the package name and version for this file? C:\Users\Robert.Farthing\AppData\Local\npm-cache\_npx\390d83e2c2518b2f\package.json

{
“dependencies”: {
“@needle-tools/helper”: “^1.10.1”
}
}

I can send the project if it helps but its a large one

It’s not related to your web project.

Which Node and NPM version do you currently use?

I have tried running all project updaters on Export Info - the Node is v20.17.0, NPM 10.8.3

Can you manually delete this directory?

C:\Users\Robert.Farthing\AppData\Local\npm-cache\_npx\390d83e2c2518b2f

Same issue after doing that and trying a production build :frowning:

And this file is missing on disc for you?

C:\Users\Robert.Farthing\AppData\Local\npm-cache\_npx\390d83e2c2518b2f\node_modules\@donmccurdy\caporal\dist\caporal.modern.js

I can confirm that file exists on disk for me, is there anything else I can try?

Does the file contain any code or appear empty?

I’m really sorry for the long delay on this, I got sucked into development on a project that needed some urgent work.

The file is intact and contains code so I am very confused why it doesn’t work

Is there a way to fix this like delete the folder in npm cache and run install again maybe?

You can try to run npm cache clean --force

That didn’t work, what did was going full nuclear deleting the library folder and reopening the project. What happened was I had to clear my cache folder out in appdata on windows which caused this issue, something broke in the Needle project after I did that despite a clean install of npm stuff

Hi, glad it is resolved.

Did you try the npm cache command? What you describe is clearing the Unity Library.

I tried the npm cache command it made no difference to the error, clearing the Unity library was the only fix here, maybe some old ref to an old npm cache in the library was there.

This topic was automatically closed 13 days after the last reply. New replies are no longer allowed.