Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /Users/justin.collum2@nutrien.com/work/seed-association-service/node_modules/axios-curlirize/src/main.js
require() of ES modules is not supported.
require() of /Users/justin.collum2@nutrien.com/work/seed-association-service/node_modules/axios-curlirize/src/main.js from /Users/justin.collum2@nutrien.com/work/seed-association-service/dist/dao.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename main.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /Users/justin.collum2@nutrien.com/work/seed-association-service/node_modules/axios-curlirize/package.json.
// dao.ts
import axios from 'axios';
...
import curlirize from 'axios-curlirize';
console.log(curlirize); // this line was suggested in a different ticket
// curlirize(axios); // using this instead didn't change the error