Regression > Copying assets is broken on Windows devices
ErazerBrecht opened this issue · comments
Did you read the migration guide?
- I have read the whole migration guide
Is there an existing issue that is already proposing this?
- I have searched the existing issues
Potential Commit/PR that introduced the regression
No response
Versions
8.1.X -> 8.2.X
Describe the regression
When running npm run start
you will get the following error:
Error An error occurred during the assets copying process. cant go up that far
This only seems to be the case in Windows.
In our docker containers in PROD everything works (Linux containers). Also our MacOS developers don't have the problem.
Minimum reproduction code
Adding a file to the assets config in nest-cli.json
"assets": ["settings.json"]
Quickly created a git repro to showcase the problem
https://github.com/ErazerBrecht/nestjs_regression
Master branch latest NestJS version => Doesn't work
Reverted branch NestJS 10.1.X => Works
Expected behavior
The expected behavior is the as-is behavior in the 10.1.X version.
It should just copy the 'settings.json' file to the dist folder.
Other
This issue might be related:
#2397
But that issue describes the files aren't copied in my case the cli already "crashes". It also sounds like it only happens with a glob pattern. Which I don't use here.