While executing `ionic cap sync`, at sync time, it throws [capacitor] [fatal] Error: Cannot find module './XMLWriterBase'

Hi All. Has anyone faced this issue running ionic cap sync? As you can see in the pic it happens at sync time, the build is successful.

> capacitor.cmd sync
[capacitor] [fatal] Error: Cannot find module './XMLWriterBase'
[capacitor] Require stack:
[capacitor] - C:\Projects\translationApp\node_modules\xml2js\node_modules\xmlbuilder\lib\XMLStringWriter.js
[capacitor] - C:\Projects\translationApp\node_modules\xml2js\node_modules\xmlbuilder\lib\XMLDocument.js
[capacitor] - C:\Projects\translationApp\node_modules\xml2js\node_modules\xmlbuilder\lib\index.js
[capacitor] - C:\Projects\translationApp\node_modules\xml2js\lib\builder.js
[capacitor] - C:\Projects\translationApp\node_modules\xml2js\lib\xml2js.js
[capacitor] - C:\Projects\translationApp\node_modules\@capacitor\cli\dist\util\xml.js
[capacitor] - C:\Projects\translationApp\node_modules\@capacitor\cli\dist\plugin.js
[capacitor] - C:\Projects\translationApp\node_modules\@capacitor\cli\dist\android\common.js
[capacitor] - C:\Projects\translationApp\node_modules\@capacitor\cli\dist\cordova.js
[capacitor] - C:\Projects\translationApp\node_modules\@capacitor\cli\dist\tasks\copy.js
[capacitor] - C:\Projects\translationApp\node_modules\@capacitor\cli\dist\tasks\sync.js
[capacitor] - C:\Projects\translationApp\node_modules\@capacitor\cli\dist\index.js
[capacitor] - C:\Projects\translationApp\node_modules\@capacitor\cli\bin\capacitor
[capacitor]     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
[capacitor]     at Function.Module._load (node:internal/modules/cjs/loader:778:27)
[capacitor]     at Module.require (node:internal/modules/cjs/loader:1005:19)
[capacitor]     at require (node:internal/modules/cjs/helpers:102:18)
[capacitor]     at Object.<anonymous> (C:\Projects\translationApp\node_modules\xml2js\node_modules\xmlbuilder\lib\XMLStringWriter.js:7:19)
[capacitor]     at Object.<anonymous> (C:\Projects\translationApp\node_modules\xml2js\node_modules\xmlbuilder\lib\XMLStringWriter.js:35:4)
[capacitor]     at Module._compile (node:internal/modules/cjs/loader:1101:14)
[capacitor]     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
[capacitor]     at Module.load (node:internal/modules/cjs/loader:981:32)
[capacitor]     at Function.Module._load (node:internal/modules/cjs/loader:822:12) {
[capacitor]   code: 'MODULE_NOT_FOUND',
[capacitor]   requireStack: [
[capacitor]     'C:\\Projects\\translationApp\\node_modules\\xml2js\\node_modules\\xmlbuilder\\lib\\XMLStringWriter.js',
[capacitor]     'C:\\Projects\\translationApp\\node_modules\\xml2js\\node_modules\\xmlbuilder\\lib\\XMLDocument.js',
[capacitor]     'C:\\Projects\\translationApp\\node_modules\\xml2js\\node_modules\\xmlbuilder\\lib\\index.js',
[capacitor]     'C:\\Projects\\translationApp\\node_modules\\xml2js\\lib\\builder.js',
[capacitor]     'C:\\Projects\\translationApp\\node_modules\\xml2js\\lib\\xml2js.js',
[capacitor]     'C:\\Projects\\translationApp\\node_modules\\@capacitor\\cli\\dist\\util\\xml.js',
[capacitor]     'C:\\Projects\\translationApp\\node_modules\\@capacitor\\cli\\dist\\plugin.js',
[capacitor]     'C:\\Projects\\translationApp\\node_modules\\@capacitor\\cli\\dist\\android\\common.js',
[capacitor]     'C:\\Projects\\translationApp\\node_modules\\@capacitor\\cli\\dist\\cordova.js',
[capacitor]     'C:\\Projects\\translationApp\\node_modules\\@capacitor\\cli\\dist\\tasks\\copy.js',
[capacitor]     'C:\\Projects\\translationApp\\node_modules\\@capacitor\\cli\\dist\\tasks\\sync.js',
[capacitor]     'C:\\Projects\\translationApp\\node_modules\\@capacitor\\cli\\dist\\index.js',
[capacitor]     'C:\\Projects\\translationApp\\node_modules\\@capacitor\\cli\\bin\\capacitor'
[capacitor]   ]
[capacitor] }