URP and InityEditor issue

Hello Guys!
I am new in Unity so I have a problem to build my game.
I used URP to use shader graph in my game, so after a make my game somthing wierd happend.
Build Manager siad
cannot build player while editor is importing assets or compiling scripts
Then I realize it happends because of UnutyEditor namespace.
After sometime i found one in Universal Additional Camera Script , which appeard on cammera automaticly.
I tried to remove this one , but unity gave my a compiler error!
What should I do?

Hello @markstepanov88 ,

Such error is usually appearing if you try to build your game while Unity is still doing some task in the background.

I don’t think that your problem is due to the usage of UnityEditor namespace because this will bring another type of error.

My suggestion is to move back the script that you removed and wait until no additional Unity’s dialog box window appears and until no Unity’s animated loading icon appears on the bottom-right side of your Unity main window appears.

After none of these two are present, try again to make your build.

Good luck with it!