# Importing Timer in Motoko, and using moc 0.7.5 with dfx 0.13.0-beta.2

**URL:** <https://forum.dfinity.org/t/importing-timer-in-motoko-and-using-moc-0-7-5-with-dfx-0-13-0-beta-2/18339>\
**Category:** Developers\
**Created:** [February 2, 2023, 4:17pm UTC](https://forum.dfinity.org/t/importing-timer-in-motoko-and-using-moc-0-7-5-with-dfx-0-13-0-beta-2/18339 "2023-02-02T16:17:04Z")\
**Posts on this page:** 5\
**Page:** 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:** [February 2, 2023, 4:17pm UTC](https://forum.dfinity.org/t/importing-timer-in-motoko-and-using-moc-0-7-5-with-dfx-0-13-0-beta-2/18339/1 "2023-02-02T16:17:04Z")

</div>

I updated dfx to `dfx 0.13.0-beta.2` to use Motoko Timer.

I noticed a couple of things:

`import error [M0009], file ".mops/_github/base@moc-0.7.4/src/Timers/lib.mo" does not exist`

it seems to still be using moc 0.7.4 instead of 0.7.5. I’m told the binary of moc can be downloaded but is this expected behaviour?

Also, not sure if it’s Timer or Timers. It seems to be used both ways:

([motoko/timers.md at master · dfinity/motoko · GitHub](https://github.com/dfinity/motoko/blob/master/doc/md/timers.md))

([motoko-base/Timer.mo at master · dfinity/motoko-base · GitHub](https://github.com/dfinity/motoko-base/blob/master/src/Timer.mo))

---

<div class="post-metadata">

**Author:** ![ZenVoich](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/zenvoich/32/5969_2.png) [@ZenVoich](https://forum.dfinity.org/u/ZenVoich)\
**Post date:** [February 3, 2023, 5:46am UTC](https://forum.dfinity.org/t/importing-timer-in-motoko-and-using-moc-0-7-5-with-dfx-0-13-0-beta-2/18339/2 "2023-02-03T05:46:49Z")

</div>

It looks like the `base` package resolved to `0.7.4`  
You can try to install latest `base` package which includes `Timer.mo` file:

```shell
mops add base

```

---

<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:** [February 6, 2023, 1:30pm UTC](https://forum.dfinity.org/t/importing-timer-in-motoko-and-using-moc-0-7-5-with-dfx-0-13-0-beta-2/18339/3 "2023-02-06T13:30:33Z")

</div>

> [@ZenVoich](#):
>
> ```auto
> mops add base
> 
> ```

It didn’t complain but on deploy I still got

` import error [M0009], file ".mops/_github/base@moc-0.7.4/src/Timer/lib.mo" does not exist`

This is the import statement:

`import Timer "mo:base/Timer";`

---

<div class="post-metadata">

**Author:** ![ZenVoich](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/zenvoich/32/5969_2.png) [@ZenVoich](https://forum.dfinity.org/u/ZenVoich)\
**Post date:** [February 6, 2023, 2:00pm UTC](https://forum.dfinity.org/t/importing-timer-in-motoko-and-using-moc-0-7-5-with-dfx-0-13-0-beta-2/18339/4 "2023-02-06T14:00:10Z")

</div>

Could you show me the contents of your `mops.toml` file?

You can try to remove `base = ...` line from your `mops.toml` file and run `mops add base` again.

---

<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:** [February 6, 2023, 2:29pm UTC](https://forum.dfinity.org/t/importing-timer-in-motoko-and-using-moc-0-7-5-with-dfx-0-13-0-beta-2/18339/5 "2023-02-06T14:29:30Z")

</div>

> [@ZenVoich](#):
>
> You can try to remove `base = ...` line from your `mops.toml` file and run `mops add base` again.

👌

Much appreciated.

I somehow had this in there…:

`base = "https://github.com/dfinity/motoko-base#moc-0.7.4"`
