Closed jaikarans closed 2 months ago
`Solved by make changes in
node_modules/cliui/build/index.cjs`:293:14 file
commented this code // const wrap = require('wrap-ansi');
and added below code
let wrap;
async function loadWrapAnsi() {
let wrap;
try {
const wrapModule = await import('wrap-ansi');
wrap = wrapModule.default; // Assuming wrap-ansi exports a default export
} catch (err) {
// Handle import error if necessary
console.error('Failed to import wrap-ansi:', err);
}
return wrap;
}
loadWrapAnsi();
Take a look at the closed issues: https://github.com/open-cli-tools/concurrently/issues/432#issuecomment-1987399378
I have a Monorepo with expressjs and react in typescript. can succesfully run commands like
yarn workspace client start
andyarn workspace server dev
but when i useconcurrently
for running the both commands together i get error like this.here is my Monorepo
package.json
here is Client
package.json
and this is my server
package.json
file