`system` capability required, but not available
(need an enclosing async expression or function body or explicit `system` type parameter)```
in a library.
I would also recommend changing your title to something along the lines of ‘motoko 11 upgrade error’ so when others inevitably run into this problem they can find a solution
For anyone reading this who is still on Motoko 0.10, you can downgrade to v0.15.2 of the extension in the VS Code marketplace or using the corresponding GitHub release.
As a quick update, the latest version of the extension (v0.16.0) now supports syntax highlighting for the previous version of Motoko (0.10.4) when using dfx 0.17 or earlier.
You can activate this by including the following line in your dfx.json config file:
{
"dfx": "0.17.0"
}
Let me know if you run into any issues, and I’ll do my best to resolve them. Cheers!
I installed dfxvm and set dfx 0.17.0 as the default and also added it to my dfx.json. However, I am
getting the same Motoko plugin error as before? Any idea what I need to do to activate the right plugin version?