mops icon indicating copy to clipboard operation
mops copied to clipboard

Vscode Motoko extension error

Open baolongt opened this issue 1 year ago • 3 comments

My simple hello world have error from mops, how to fix it?

Error: Error while running `defaults.build.packtool` in `dfx.json` config file:
Command failed: mops sources

baolongt avatar May 02 '24 13:05 baolongt

dfx.json

...
  "defaults": {
    "build": {
      "args": "",
      "packtool": "mops sources"
    }
  },
 ...

baolongt avatar May 02 '24 14:05 baolongt

What is the output of mops sources if you run it in terminal?

ZenVoich avatar May 02 '24 18:05 ZenVoich

What is the output of mops sources if you run it in terminal?

--package base .mops/[email protected]/src

baolongt avatar May 03 '24 11:05 baolongt

@ZenVoich I just noitice that the issue from this error

  Error: Cannot find module '@napi-rs/lzma-linux-x64-gnu'

and some how my command should use ic-mops instead of mops

baolongt avatar Jun 08 '24 12:06 baolongt

https://github.com/dfinity/vscode-motoko/issues/283 It work

baolongt avatar Jun 08 '24 15:06 baolongt