Updating mimetext from version 3.0.24 to 3.0.27 introduced a breaking change which caused a runtime error.
Error message at runtime:
require() of ES Module /opt/nodejs/node_modules/mimetext/dist/mimetext.node.cjs.js from /###/#####.js not supported.\nmimetext.node.cjs.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains \"type\": \"module\" which declares all .js files in that package scope as ES modules.\nInstead either rename mimetext.node.cjs.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change \"type\": \"module\" to \"type\": \"commonjs\" in /opt/nodejs/node_modules/mimetext/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
Current solution for us was to rollback to version 3.0.24 and stick there for now.
Updating mimetext from version 3.0.24 to 3.0.27 introduced a breaking change which caused a runtime error.
Error message at runtime:
require() of ES Module /opt/nodejs/node_modules/mimetext/dist/mimetext.node.cjs.js from /###/#####.js not supported.\nmimetext.node.cjs.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains \"type\": \"module\" which declares all .js files in that package scope as ES modules.\nInstead either rename mimetext.node.cjs.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change \"type\": \"module\" to \"type\": \"commonjs\" in /opt/nodejs/node_modules/mimetext/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).Current solution for us was to rollback to version 3.0.24 and stick there for now.