RollupError: Filename during build (for FTP or Glitch)

When trying to build and deploy a sample, such as “Configurator”, I receive this error during build:

RollupError: The “fileName” or “name” properties of emitted chunks and assets must be strings that are neither absolute nor relative paths, received “…/…/…/…/…/…/roblkw/wkspaces/NeedleFive/Library/Needle/Sample/index.html”.

Original Post on Discord

by user 225092454464880640

The bug happens when trying to Build & Deploy: Prod to either FTP or Glitch

by user 225092454464880640

Needle Engine 3.11.0, Samples 0.8.1
image.png

by user 225092454464880640

And it seems to happen on all of the samples I’ve tried to build

by user 225092454464880640

This is very likely related to the issue you’re having here Discord

Interesting that rollup is failing here

Can you check which vite version is currently installed at node_modules/vite/package.json ?

vite 4.3.9

by user 225092454464880640

Yeah, I wouldn’t be surprised if it’s related.

by user 225092454464880640

And which rollup version?

This is the vite package.json
package.json

by user 225092454464880640

rollup 3.27.0

by user 225092454464880640

Thanks.
Posting this as a reference for tomorrow: Error: The "fileName" or "name" properties of emitted files must be strings that are neither absolute nor relative paths and do not contain invalid characters · Issue #250 · egoist/rollup-plugin-postcss · GitHub

And assetsDir can not use the relative Path '../' · Issue #5627 · vitejs/vite · GitHub but i guess you didnt modify the vite.config?!

Otherwise it should have failed on my side as well i think

I didn’t modify it, no.

by user 225092454464880640

Glitch build&deploy works on Linux Mint, using Needle Version 3.11.2

by user 225092454464880640

I’ll try again on my Windows computer now. Update (didn’t work, unfortunately)

by user 225092454464880640

Great to here it works on one. You don’t happen to have another windows machine you can test on, do you?