is cfn2ts compatible with aws-cdk-lib? #20708
Closed
ahmetsoykan
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
We have privately registered cloudformation resources and we are using their specification.json as a CDK construct with help of cfn2ts tool, and they are depending on cfn_parse in ./core/lib/helpers-internal.
I could not pass this error either. I guess we could not get exported classes in helpers-internal due to core module status.
import * as cfn_parse from 'aws-cdk-lib/core/lib/helpers-internal';
Our main CDK project complains like this:
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './core' is not defined by "exports" in /Users/ahmetsoykan/projects/infra/node_modules/aws-cdk-lib/package.json at new NodeError (node:internal/errors:372:5) at throwExportsNotFound (node:internal/modules/esm/resolve:440:9) at packageExportsResolve (node:internal/modules/esm/resolve:719:3) at resolveExports (node:internal/modules/cjs/loader:483:36) at Function.Module._findPath (node:internal/modules/cjs/loader:523:31) at Function.Module._resolveFilename (node:internal/modules/cjs/loader:925:27) at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (/Users/ahmetsoykan/projects/infra/node_modules/@cspotcode/source-map-support/source-map-support.js:811:30) at Function.Module._load (node:internal/modules/cjs/loader:780:27) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) { code: 'ERR_PACKAGE_PATH_NOT_EXPORTED' }
I would be so happy if you help me on this?
Beta Was this translation helpful? Give feedback.
All reactions