Upgrade to Theia 1.22 (from 1.21)

I am trying to upgrade my Theia from 1.21 to the latest new one 1.22, I am facing this issue in the clean process:

yarn run v1.22.5
$ theia clean
    throw err;

Error: Cannot find module '../build/Debug/ffmpeg.node'
Require stack:
- C:\proj\node_modules\@theia\ffmpeg\lib\ffmpeg.js
- C:\proj\node_modules\@theia\ffmpeg\lib\index.js
- C:\proj\node_modules\@theia\application-manager\lib\application-package-manager.js
- C:\proj\node_modules\@theia\application-manager\lib\index.js
- C:\proj\node_modules\@theia\cli\lib\theia.js
- C:\proj\node_modules\@theia\cli\bin\theia
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:793:17)
    at Function.Module._load (internal/modules/cjs/loader.js:686:27)
    at Module.require (internal/modules/cjs/loader.js:848:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (C:\proj\node_modules\@theia\ffmpeg\lib\ffmpeg.js:27:37)
    at Module._compile (internal/modules/cjs/loader.js:955:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
    at Module.load (internal/modules/cjs/loader.js:811:32)
    at Function.Module._load (internal/modules/cjs/loader.js:723:14)
    at Module.require (internal/modules/cjs/loader.js:848:19) {
  requireStack: [
error Command failed with exit code 1.

Can anyone help with this issue?

Thanks in advance

@safi thank you for the discussion :+1: I’ll look into it a bit more and get back to you, on first glance it seems that the Build folder expected by @theia/ffmpeg does not exist.

cc @paul-marechal

I was not expecting binding.gyp to not be automatically included when publishing since it’s a “magic file” picked up by npm to trigger native addon builds upon install…

We’ll do a patch release to fix this issue.

@safi We just released 1.22.1 to fix this issue, sorry for the inconvenience!


I have tested the fix (1.22.1), and now the build is working well.
Thanks a lot for the fast response.