title: Getting error while building using skaffold
body: <p>Hi I have Kubernetes and skaffold configured and am getting this error when I run skaffold dev</p>
  <p>Error [ERR_REQUIRE_ESM]: require() of ES Module /app/node_modules/@pcblog/common/build/index.js from /app/src/index.ts not supported.
  [auth] index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains &quot;type&quot;: &quot;module&quot; which declares all .js files in that package scope as ES modules.
  [auth] Instead rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change &quot;type&quot;: &quot;module&quot; to &quot;type&quot;: &quot;commonjs&quot; in /app/node_modules/@pcblog/common/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
  [auth]
  [auth]     at Object.nodeDevHook [as .js] (/app/node_modules/ts-node-dev/lib/hook.js:63:13)
  [auth]     at Object. (/app/src/index.ts:20:18)
  [auth]     at Module._compile (/app/node_modules/source-map-support/source-map-support.js:568:25)
  [auth]     at Module.m._compile (/tmp/ts-node-dev-hook-8275593419632179.js:69:33)
  [auth]     at require.extensions. (/tmp/ts-node-dev-hook-8275593419632179.js:71:20)
  [auth]     at Object.nodeDevHook [as .ts] (/app/node_modules/ts-node-dev/lib/hook.js:63:13)
  [auth]     at Object. (/app/node_modules/ts-node-dev/lib/wrap.js:104:1)
  [auth]     at Module._compile (/app/node_modules/source-map-support/source-map-support.js:568:25)
  [auth] [ERROR] 04:55:44 Error: require() of ES Module /app/node_modules/@pcblog/common/build/index.js from /app/src/index.ts not supported.
  [auth] index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains &quot;type&quot;: &quot;module&quot; which declares all .js files in that package scope as ES modules.
  [auth] Instead rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change &quot;type&quot;: &quot;module&quot; to &quot;type&quot;: &quot;commonjs&quot; in /app/node_modules/@pcblog/common/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
  [auth]</p>