Do consider upgrading your dfx, you can use this guide The dfx version manager (dfxvm) version 1.0.0 is released!
Secondly you can check your canister dependencies in dfx.json file, remove any unwanted dependence.
1 Like