Issue with aio app add actions
I am facing an issue while trying to add actions in my Adobe I/O project using the aio app add actions command. The error I get is:
Error: Named export 'loadFile' not found. The requested module 'mem-fs' is a CommonJS module, which may not support all module.exports as named exports.
System Details:
- Node.js Version: v22.13.1
- npm Version: 10.9.2
- AIO CLI Version: 10.3.2
>aio app add actions
When i try to add action, I see below error
i Installing template @adobe/generator-add-action-generices, go to https://adobe.ly/templates
i Installing npm package @adobe/generator-add-action-generic
changed 1 package, and audited 1258 packages in 17s
176 packages are looking for funding
run `npm fund` for details
22 vulnerabilities (5 low, 12 moderate, 5 high)
To address issues that do not require attention, run:
npm audit fix
To address all issues possible (including breaking changes), run:
npm audit fix --force
Some issues need review, and may require choosing
a different dependency.
Run `npm audit` for details.
√ Installed npm package @adobe/generator-add-action-generic
» Error: Named export 'loadFile' not found. The requested module 'mem-fs' is a CommonJS module, which may not support all module.exports as named exports.
» CommonJS modules can always be imported via the default export, for example using:
»
» import pkg from 'mem-fs';
» const { loadFile } = pkg;
Any guidance or workaround would be greatly appreciated. Thanks!



