Hi,
I wanted to the entries of an array but I get the following error : type error [M0072], field sort does not exist in type
I’m importing it with : import Array "mo:base/Array";
I tried with vessel to add the dependency like this :
let
-- This is where you can add your own packages to the package-set
additions =
[{
name = "base",
repo = "https://github.com/dfinity/motoko-base",
version = "dfx-0.7.0",
dependencies = ["base"]
}] : List Package
In that case you might need to wait for the next dfx release before you access Array.sort from base, sorry. Until then you could just copy the definition into your project as it doesn’t rely on any unreleased features, and replace it with the base version later.