[MXS-4318] MaxCtrl can't find 'yargs' Created: 2022-09-26  Updated: 2022-10-03  Resolved: 2022-10-03

Status: Closed
Project: MariaDB MaxScale
Component/s: maxctrl
Affects Version/s: 2.4
Fix Version/s: 2.4.20

Type: Bug Priority: Major
Reporter: markus makela Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None

Sprint: MXS-SPRINT-167

 Description   

Recent 2.4 tests have started to fail with this:

123: pkg/prelude/bootstrap.js:1176
123:       throw error;
123:       ^
123: 
123: Error: Cannot find module 'yargs'
123: 1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.
123:     at Function.Module._resolveFilename (module.js:469:15)
123:     at Function.Module._resolveFilename (pkg/prelude/bootstrap.js:1278:46)
123:     at Function.Module._load (module.js:417:25)
123:     at Module.require (module.js:497:17)
123:     at Module.require (pkg/prelude/bootstrap.js:1157:31)
123:     at require (internal/module.js:20:19)
123:     at Object.<anonymous> (/snapshot/maxctrl/lib/core.js:0)
123:     at Module._compile (pkg/prelude/bootstrap.js:1252:22)
123:     at Object.Module._extensions..js (module.js:579:10)
123:     at Module.load (module.js:487:32)



 Comments   
Comment by markus makela [ 2022-10-03 ]

Using Node 10 when building it seems to work.

Generated at Thu Feb 08 04:27:47 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.