Package export does not work like I expect

In reply to ramankaur09:

This error message is stating that the tool can’t find seq_pkg or env_pkg. Did you compile them before compiling top.sv?