Post
Share your knowledge.
Do we have number of dependecies restriction that we can import in sui move ?
'VMError with status LINKER_ERROR at location UNDEFINED and message Cannot find ModuleId { address: cffcf0347987e02e617af864f42a4eb964ba94465abf0875053db4ec3c2b2f81, name: Identifier("cc") } in data cache
I am getting this error
what is this error ? can someone help here ?
- Sui
- SDKs and Developer Tools
Answers
3The error LINKER_ERROR with "Cannot find ModuleId" occurs when the Move compiler or runtime cannot locate a dependency you are trying to import. This typically happens if the module at the specified address is not published on the network, the address or module name is misspelled, or the dependency is not correctly listed in your Move.toml file.
Sui Move does not impose a hard limit on the number of dependencies, but all imported modules must be published and accessible on the target network (e.g., testnet, mainnet).
To fix:
- Verify the package address and module name are correct.
- Ensure the dependency is published on the current network.
- Confirm the dependency is declared in
Move.tomlwith the right address mapping. - If using a third-party package, check its documentation for correct import syntax and network availability.
Sui Move does not enforce a strict dependency limit, but this error occurs when a dependency is missing or incorrectly referenced in your Move.toml.
Fix the Error:
-
Check
Move.toml: Ensure all dependencies are properly declared.[dependencies] Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework", rev = "framework/testnet" } -
Verify Module Addresses:
- The error
Cannot find ModuleIdmeans the VM can't locate moduleccat addresscffcf0.... - Ensure the dependency's
addressinMove.tomlmatches the module's published address.
- The error
-
Clean & Rebuild:
sui move clean # Clear cached artifacts sui move build # Rebuild
Common Causes:
- Missing dependency in
Move.toml. - Incorrect address for the dependency.
- Outdated framework version (e.g., using
testnetvsmainnet).
Debug Steps:
sui move prove --dump-bytecode # Inspect module linkages
You're seeing the error VMError with status LINKER_ERROR at location UNDEFINED and message Cannot find ModuleId because your Sui Move module is trying to import or call something from a module (cc) that doesn’t exist in the current build or wasn’t deployed to the network. The message is saying: “I looked for a module at address 0xcffc...f81 with the name cc, but couldn’t find it.”
This isn’t about exceeding a limit on the number of dependencies. Rather, it’s a linking error caused by one of the following:
- You specified a dependency in your Move code like
use 0xcffc...f81::cc::SomeFunction;, but the moduleccwas never published to the chain or not present in the build output. - You may have a stale or incorrect address in your
Move.tomlor import statement. - The dependency was removed or updated in the upstream package, and your code is referencing an outdated module or address.
✅ How to Fix It
-
Check your
Move.tomlMake sure you have this module listed properly in[dependencies], or that you're not trying to use an external module without linking it. -
Inspect your imports Look through your
.movefiles and see if you have any line like:
use 0xcffc...f81::cc::SomeFunction;
If cc doesn’t exist or isn’t part of your current build scope, that import will fail.
-
Remove or correct the dependency If the module was renamed, removed, or you don't need it anymore, delete the import. If you do need it, make sure to either:
- Publish the
ccmodule at the specified address, or - Update the address and name to match your local or remote dependency.
- Publish the
🔍 What This Error Means
This is not a restriction on the number of dependencies. Sui Move doesn't impose a hard cap on how many modules you can import—but every module you import must be present in your package or linked dependencies at compile or execution time.
You can read more about dependency linking and Move.toml structure here:
https://docs.sui.io/build/move/manage-dependencies
Do you know the answer?
Please log in and share it.
Sui is a Layer 1 protocol blockchain designed as the first internet-scale programmable blockchain platform.
- How to Maximize Profit Holding SUI: Sui Staking vs Liquid Staking616
- Why does BCS require exact field order for deserialization when Move structs have named fields?65
- Multiple Source Verification Errors" in Sui Move Module Publications - Automated Error Resolution55
- Sui Move Error - Unable to process transaction No valid gas coins found for the transaction419
- Sui Transaction Failing: Objects Reserved for Another Transaction410