This is probably because you're now exporting it as ESM, but Nx requires CJS. See the `loadTsTransformers` function: https://github.com/nrwl/nx/blob/a02095498768da6762569842305bd2f4775ab36e/packages/js/src/utils/typescript/load-ts-transformers.ts#L80-L83