# icrc1/src/ICRC1/lib.mo:16.1-16.40: import error \[M0010\], package "StableTrieMap" not defined

**URL:** <https://forum.dfinity.org/t/icrc1-src-icrc1-lib-mo-16-1-16-40-import-error-m0010-package-stabletriemap-not-defined/18004>\
**Category:** Language Support\
**Created:** [January 16, 2023, 6:18pm UTC](https://forum.dfinity.org/t/icrc1-src-icrc1-lib-mo-16-1-16-40-import-error-m0010-package-stabletriemap-not-defined/18004 "2023-01-16T18:18:51Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![blabagastered](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/blabagastered/32/8592_2.png) [@blabagastered](https://forum.dfinity.org/u/blabagastered)\
**Post date:** [January 16, 2023, 6:18pm UTC](https://forum.dfinity.org/t/icrc1-src-icrc1-lib-mo-16-1-16-40-import-error-m0010-package-stabletriemap-not-defined/18004/1 "2023-01-16T18:18:51Z")

</div>

I’m trying to add an ICRC token canister to an existing project that has other canisters.

I added the token canister to dfx.json, installed mops, and on deploy of the ICRC token canister, I get

```auto
   dfx deploy icrc_token

Deploying: icrc_token
All canisters have already been created.
Building canisters...
Error: Failed while trying to deploy canisters.
Caused by: Failed while trying to deploy canisters.
  Failed to build call canisters.
    Failed while trying to build all canisters.
      The build step failed for canister 'rno2w-sqaaa-aaaaa-aaacq-cai' (icrc_token) with an embedded error: Failed to build Motoko canister 'icrc_token'.: Failed to compile Motoko.: Failed to run 'moc'.: The command '"/Users/black/.cache/dfinity/versions/0.12.1/moc" "/Users/black/icp/b/backed_usd/src/icrc_token/Main.mo" "-o" "/Users/black/icp/b/backed_usd/.dfx/local/canisters/icrc_token/icrc_token.wasm" "-c" "--debug" "--idl" "--stable-types" "--public-metadata" "candid:service" "--actor-idl" "/Users/black/icp/b/backed_usd/.dfx/local/canisters/idl/" "--actor-alias" "icrc_token" "rno2w-sqaaa-aaaaa-aaacq-cai" "--package" "base" ".mops/base@0.7.4/src" "--package" "xtended-numbers" ".mops/xtended-numbers@0.1.1/src" "--package" "itertools" ".mops/itertools@0.1.1/src"' failed with exit status 'exit status: 1'.
Stdout:

Stderr:
/Users/black/icp/b/icrc1/src/ICRC1/lib.mo:16.1-16.40: import error [M0010], package "StableTrieMap" not defined

```

This is Main.mo in src/icrc\_token in my project’s repo (I just pasted it verbatim for now): [icrc1/main.mo at main · NatLabs/icrc1 · GitHub](https://github.com/NatLabs/icrc1/blob/main/example/icrc1/main.mo)

The error arises here: [icrc1/lib.mo at c9ff6c64ee1531f33bf3d4d43bcbbbed271008af · NatLabs/icrc1 · GitHub](https://github.com/NatLabs/icrc1/blob/c9ff6c64ee1531f33bf3d4d43bcbbbed271008af/src/ICRC1/lib.mo#L16)

---

_[View the full topic](https://forum.dfinity.org/t/icrc1-src-icrc1-lib-mo-16-1-16-40-import-error-m0010-package-stabletriemap-not-defined/18004)._
