# Export metadata with SOLC when using imports

By [N00b21337](https://paragraph.com/@n00b21337) · 2023-10-31

---

  
Have been getting errors like this one when I try to export metadata

    Error: Source "@openzeppelin/contracts/security/Pausable.sol" not found: File not found. Searched the following locations: "/home/marko/Work/swarm/swarm-si/.". --> src/PostageStamp.sol:5:1: | 5 | import "@openzeppelin/contracts/security/Pausable.sol";
    

to solve this you need to include a path to node modules like below and then you will get proper output. Bare in mind to use a proper solidity version of the contracts

    solc --base-path .  --include-path ./node_modules --metadata src/PostageStamp.sol > output.json

---

*Originally published on [N00b21337](https://paragraph.com/@n00b21337/export-metadata-with-solc-when-using-imports)*
