npm install
node script.cjs
for the commonjs implementationnode script.mjs
for the ESM implementation
ESM vs CJS doesn't matter, both exhibit the same behavior.
The presence of prettier-plugin-tailwindcss
is key, through it's dependency on the flow parser, it is somehow causing all subsequent errors to be processed by prettier/plugins/flow.mjs
, which then dumps contents from that minified file to the console.