# Module std::token could not be found

**URL:** <https://forum.fuel.network/t/module-std-token-could-not-be-found/5185>\
**Category:** Sway\
**Tags:** testnet\
**Created:** [April 26, 2024, 5:50am UTC](https://forum.fuel.network/t/module-std-token-could-not-be-found/5185 "2024-04-26T05:50:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shivamlync](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/shivamlync/32/2807_2.png) [@shivamlync](https://forum.fuel.network/u/shivamlync)\
**Post date:** [April 26, 2024, 5:50am UTC](https://forum.fuel.network/t/module-std-token-could-not-be-found/5185/1 "2024-04-26T05:50:02Z")

</div>

Topic discussion checklist

- Run `$ fuelup show` and add the output below

```bash
Default host: x86_64-unknown-linux-gnu
fuelup home: /home/shivam/.fuelup

installed toolchains
--------------------
latest-x86_64-unknown-linux-gnu (default)

active toolchain
----------------
latest-x86_64-unknown-linux-gnu (default)
  forc : 0.49.3
    - forc-client
      - forc-deploy : 0.49.3
      - forc-run : 0.49.3
    - forc-crypto : 0.49.3
    - forc-debug : Could not parse version (empty string, expected a semver version)
    - forc-doc : 0.49.3
    - forc-explore : 0.28.1
    - forc-fmt : 0.49.3
    - forc-lsp : 0.49.3
    - forc-tx : 0.49.3
    - forc-wallet : 0.4.3
  fuel-core : 0.22.4
  fuel-core-keygen : 0.22.4

fuels versions
--------------
forc : 0.54.0
forc-wallet : 0.54.0

```

- Detailed steps to recreate issue  
Trying to import `mint_to` function from `use std::token::mint_to` but throwing error `Module "std::token" could not be found.`

- reference code  
[sway-game-demo/contract/src/main.sw at main · sarahschwartz/sway-game-demo · GitHub](https://github.com/sarahschwartz/sway-game-demo/blob/main/contract/src/main.sw)

- using **Testnet Beta 5**

---

<div class="post-metadata">

**Author:** ![bitzoic](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/bitzoic/32/2077_2.png) [@bitzoic](https://forum.fuel.network/u/bitzoic)\
**Post date:** [April 26, 2024, 6:25am UTC](https://forum.fuel.network/t/module-std-token-could-not-be-found/5185/2 "2024-04-26T06:25:04Z")

</div>

This example appears to be out of date.

The imports have been updated in beta-5  
From: `use std::token::*`  
To: `use std::asset::*`

---

<div class="post-metadata">

**Author:** ![shivamlync](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/shivamlync/32/2807_2.png) [@shivamlync](https://forum.fuel.network/u/shivamlync)\
**Post date:** [April 26, 2024, 6:39am UTC](https://forum.fuel.network/t/module-std-token-could-not-be-found/5185/3 "2024-04-26T06:39:59Z")

</div>

Any suggestions how can I enable the code suggestions and auto imports for sway in vscode. As I think this could be solved by the auto imports in sway vscode extension.

---

<div class="post-metadata">

**Author:** ![crypt0mate](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/crypt0mate/32/2445_2.png) [@crypt0mate](https://forum.fuel.network/u/crypt0mate)\
**Post date:** [April 26, 2024, 8:30am UTC](https://forum.fuel.network/t/module-std-token-could-not-be-found/5185/4 "2024-04-26T08:30:21Z")

</div>

@shivamlync

there is vscode sway plugin not sure if it does what you are looking for, maybe you can give it a go

 ![image](https://us1.discourse-cdn.com/flex022/uploads/fuel/original/2X/8/86fa9baa2c7ef2470788a3f9e097dd1dbb226227.png)

---

<div class="post-metadata">

**Author:** ![shivamlync](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/shivamlync/32/2807_2.png) [@shivamlync](https://forum.fuel.network/u/shivamlync)\
**Post date:** [April 26, 2024, 9:20am UTC](https://forum.fuel.network/t/module-std-token-could-not-be-found/5185/5 "2024-04-26T09:20:48Z")

</div>

@crypt0mate  
Yeah, I have tried that extension, but it is under development as many features are unavailable. That’s why I was hoping to know when those features will be available. As you can see in the extension too the major feature which is code completions is yet to be made available.

---

<div class="post-metadata">

**Author:** ![shivamlync](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/shivamlync/32/2807_2.png) [@shivamlync](https://forum.fuel.network/u/shivamlync)\
**Post date:** [April 26, 2024, 9:21am UTC](https://forum.fuel.network/t/module-std-token-could-not-be-found/5185/6 "2024-04-26T09:21:57Z")

</div>

Any suggestions where can I get complete guide for the same. How can I know what has changed and what are the proper imports that I can use.
