ZenVoich / mops

Package manager for the Motoko programming language
https://mops.one
MIT License
35 stars 3 forks source link

Vscode Motoko extension error #226

Closed baolongt closed 1 month ago

baolongt commented 2 months ago

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 commented 2 months ago

dfx.json

...
  "defaults": {
    "build": {
      "args": "",
      "packtool": "mops sources"
    }
  },
 ...
ZenVoich commented 2 months ago

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

baolongt commented 2 months ago

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

--package base .mops/base@0.11.1/src

baolongt commented 1 month ago

@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 commented 1 month ago

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