# Package Failed

**URL:** <https://forums.unrealengine.com/t/package-failed/560726>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** Packaging-Error, unreal-engine, UE5-0, question\
**Created:** [May 19, 2022, 2:46am UTC](https://forums.unrealengine.com/t/package-failed/560726 "2022-05-19T02:46:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_6d969545](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6d969545](https://forums.unrealengine.com/u/anonymous_user_6d969545)\
**Post date:** [May 19, 2022, 2:46am UTC](https://forums.unrealengine.com/t/package-failed/560726/1 "2022-05-19T02:46:26Z")

</div>

Hi All, I was just trying to package my game to test out a gaming feature which I have just incorporated in and I received these 2 errors in the Output Log.

As I have just started using UE5, I am not sure why and how I got these errors:

UATHelper: Packaging (Windows): WARNING: Errors generated while parsing ‘C:\Users\User\Desktop\VR EXP\new\Intermediate\Source\new.Build.cs’  
PackagingResults: Warning: Errors generated while parsing ‘C:\Users\User\Desktop\VR EXP\new\Intermediate\Source\new.Build.cs’

UATHelper: Packaging (Windows): ERROR: Expecting to find a type to be declared in a target rules named ‘newTarget’. This type must derive from the ‘TargetRules’ type defined by Unreal Build Tool.  
PackagingResults: Error: Expecting to find a type to be declared in a target rules named ‘newTarget’. This type must derive from the ‘TargetRules’ type defined by Unreal Build Tool.

The project includes an imported model from sketchup using datasmith with user movement and a simple item inspection system.

Please do advise on how to rectify the errors above.

Thanks

---

<div class="post-metadata">

**Author:** ![Astrotronic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/astrotronic/32/1194566_2.png) [@Astrotronic](https://forums.unrealengine.com/u/Astrotronic)\
**Post date:** [May 24, 2022, 12:47am UTC](https://forums.unrealengine.com/t/package-failed/560726/2 "2022-05-24T00:47:26Z")

</div>

Hello Shashanyaa,

Try deleting your projects ‘Intermediate’ folder. This folder will be regenerated when you relaunch your project.

Hope that helps!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6d969545](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6d969545](https://forums.unrealengine.com/u/anonymous_user_6d969545)\
**Post date:** [May 24, 2022, 2:23am UTC](https://forums.unrealengine.com/t/package-failed/560726/3 "2022-05-24T02:23:55Z")

</div>

Hi,

Thank you for your reply.

I have tried as you have suggested and the folder did regenerated but I received the same error.

Is it the .Build.cs file that causing this error?

---

<div class="post-metadata">

**Author:** ![TadrousMagdy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TadrousMagdy](https://forums.unrealengine.com/u/TadrousMagdy)\
**Post date:** [May 21, 2023, 9:26am UTC](https://forums.unrealengine.com/t/package-failed/560726/4 "2023-05-21T09:26:54Z")

</div>

thanks man that’s helped a lot and fix my problem
