blakeembrey / change-case

Convert strings between camelCase, PascalCase, Capital Case, snake_case and more
MIT License
2.29k stars 97 forks source link

Newest Update broke our pipelines #312

Closed RamazanKara closed 1 year ago

RamazanKara commented 1 year ago

Since dependabot updated change-case to newest version, we get the following error in the pipeline:

$ npx cdk synth Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in /home/runner/work/node_modules/change-case/package.json at new NodeError (node:internal/errors:405:5) at exportsNotFound (node:internal/modules/esm/resolve:362:10) at packageExportsResolve (node:internal/modules/esm/resolve:642:13) at resolveExports (node:internal/modules/cjs/loader:567:36) at Function.Module._findPath (node:internal/modules/cjs/loader:636:31) at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1063:27) at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (/home/runner/work/shoen_eks_platform/shoen_eks_platform/node_modules/@cspotcode/source-map-support/source-map-support.js:811:30) at Function.Module._load (node:internal/modules/cjs/loader:922:27) at Module.require (node:internal/modules/cjs/loader:1143:19) at require (node:internal/modules/cjs/helpers:119:18) { code: 'ERR_PACKAGE_PATH_NOT_EXPORTED' } Subprocess exited with error 1

blakeembrey commented 1 year ago

Duplicate: https://github.com/blakeembrey/change-case/issues/311. Unless you’re using ESM this is the expected behavior.