c# I can't find the error

using UnityEngine;
using System.Collections;

     public class Editor : MonoBehaviour {
         public string pagename;
         public int page = 1;
         void OnGUI () {
             GUI.Box (new Rect (10, 10, Screen.width / 4, Screen.height - 10), pagename);
             if (page != 1) {
                             if (GUI.Button (new Rect (10, Screen.height - 30, 20, 20), "<")) {
                                     page--;
                             }
                     }
             if (page != 5) {
                             if (GUI.Button (new Rect ((Screen.width / 4) - 10, Screen.height - 30, 20, 20), ">")) {
                                     page++;
                             }
                     }
             if (page == 1)
                             pagename = "Cabins";
             if (page == 2)
                 pagename = "Propulsion";
             if (page == 3)
                 pagename = "Weapons";
             if (page == 4)
                 pagename = "Structural";
             if (page == 5)
                 pagename = "Utility";
             if (GUI.Box(new Rect(20,20,Screen.width/8,Screen.height/8),"Cabin")){
                 Grab();
             }
         }
         
         // Update is called once per frame
         void Update () {
         
         }
         void Grab(){
             GameObject part;
             Vector3 pos = Input.mousePosition;
             pos.z = transform.position.z - Camera.main.transform.position.z;
             part = Resources.LoadAssetAtPath("Assets/Parts/Cabin_1-ex",typeof(GameObject));
             part.transform.position = Camera.main.ScreenToWorldPoint(pos);
         }
     }

I get errors at 30,17 and 43,17 But i dont know what is wrong.

You are only loading a prefab at line 42 and then you’re trying to change its transform position but LoadAssetAtPath only returns a prefab and not an instance, so you need to Instantiate it before being able to change position and anything else with it.