"field trap does not exist in type" for Prim module in Base library

I’m using the master version of motoko-base library and I’m getting the error that “trap” does not exist in Prim module. I actually get a bunch of errors regarding the Prim module. Do I need to do some installation for that? Right now it imports Prim through: import Prim "mo:⛔";

1 Like

You’re probably using an older version of motoko that doesn’t yet support “trap”.

Try upgrading your dfx to the latest version 0.8.4?

1 Like