This repository was archived by the owner on Jun 11, 2026. It is now read-only.
This repository was archived by the owner on Jun 11, 2026. It is now read-only.

create-functionless-app: Created app cannot synth when using npm #528

Description

@cfraz89

Synth fails when project is created/deps installed in npm, though not through yarn or pnpm
npm cdk synth results in:


thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: LayoutError', /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/rkyv-0.7.37/src/impls/core/mod.rs:265:67
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/home/chris/functionless/new-project/src/app.ts")'
Caused by:
0: failed to invoke `@functionless/ast-reflection` as js transform plugin at node_modules/@functionless/ast-reflection/ast_reflection.wasm
1: RuntimeError: unreachable
at __rust_start_panic (<module>[1581]:0x1470e8)
at rust_panic (<module>[1574]:0x146e2d)
at std::panicking::rust_panic_with_hook::h34503c79e5f975a0 (<module>[1573]:0x146daa)
at std::panicking::begin_panic_handler::{{closure}}::h12a46dd1ec9ad9ef (<module>[1560]:0x146010)
at std::sys_common::backtrace::__rust_end_short_backtrace::hbfd28f296b351783 (<module>[1559]:0x145f4f)
at rust_begin_unwind (<module>[1568]:0x1466fa)
at core::panicking::panic_fmt::h7092b9385b17ba68 (<module>[1666]:0x14d0d1)
at core::result::unwrap_failed::hcf4dc3db6a31deee (<module>[1705]:0x14eb63)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2f51fdec64c09b49 (<module>[951]:0xfdb43)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2e8a8069be0c9f2f (<module>[399]:0x62b98)
at swc_common::plugin::serialized::PluginSerializedBytes::deserialize::hf5e85413ebd1458b (<module>[96]:0x1995e)
at swc_common::plugin::serialized::deserialize_from_ptr::h5296ff6c7163ba5e (<module>[95]:0x196ef)
at __transform_plugin_process_impl (<module>[525]:0x86526)
at __transform_plugin_process_impl.command_export (<module>[1766]:0x152883)
2: unreachable', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.228.0/src/plugin.rs:228:14
stack backtrace:
0: 0x7f7e0225b19d - <unknown>
1: 0x7f7e0228334c - <unknown>
2: 0x7f7e02256a11 - <unknown>
3: 0x7f7e0225cac5 - <unknown>
4: 0x7f7e0225c7e6 - <unknown>
5: 0x7f7e0225d056 - <unknown>
6: 0x7f7e0225cf47 - <unknown>
7: 0x7f7e0225b654 - <unknown>
8: 0x7f7e0225cc79 - <unknown>
9: 0x7f7e00602233 - <unknown>
10: 0x7f7e00602323 - <unknown>
11: 0x7f7e00dd483e - <unknown>
12: 0x7f7e00ee26ab - <unknown>
13: 0x7f7e00de1ebd - <unknown>
14: 0x7f7e00ddb538 - <unknown>
15: 0x7f7e008943dc - <unknown>
16: 0x7f7e00896375 - <unknown>
17: 0x7f7e007b546f - <unknown>
18: 0x7f7e00888a01 - <unknown>
19: 0x7f7e008005de - <unknown>
20: 0xaaf64d - _ZN6v8impl12_GLOBAL__N_123FunctionCallbackWrapper6InvokeERKN2v820FunctionCallbackInfoINS2_5ValueEEE
21: 0xd396ae - _ZN2v88internal12_GLOBAL__N_119HandleApiCallHelperILb0EEENS0_11MaybeHandleINS0_6ObjectEEEPNS0_7IsolateENS0_6HandleINS0_10HeapObjectEEESA_NS8_INS0_20FunctionTemplateInfoEEENS8_IS4_EENS0_16BuiltinArgumentsE
22: 0xd3aacf - _ZN2v88internal21Builtin_HandleApiCallEiPmPNS0_7IsolateE
23: 0x15d5519 - Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit
/home/chris/functionless/new-project/node_modules/@swc/core/index.js:241
return bindings.transformSync(isModule ? JSON.stringify(src) : src, isModule, toBuffer(newOptions));
^
Error: failed to handle: failed to invoke plugin: failed to invoke plugin on 'Some("/home/chris/functionless/new-project/src/app.ts")'
Caused by:
0: failed to invoke `@functionless/ast-reflection` as js transform plugin at node_modules/@functionless/ast-reflection/ast_reflection.wasm
1: RuntimeError: unreachable
at __rust_start_panic (<module>[1581]:0x1470e8)
at rust_panic (<module>[1574]:0x146e2d)
at std::panicking::rust_panic_with_hook::h34503c79e5f975a0 (<module>[1573]:0x146daa)
at std::panicking::begin_panic_handler::{{closure}}::h12a46dd1ec9ad9ef (<module>[1560]:0x146010)
at std::sys_common::backtrace::__rust_end_short_backtrace::hbfd28f296b351783 (<module>[1559]:0x145f4f)
at rust_begin_unwind (<module>[1568]:0x1466fa)
at core::panicking::panic_fmt::h7092b9385b17ba68 (<module>[1666]:0x14d0d1)
at core::result::unwrap_failed::hcf4dc3db6a31deee (<module>[1705]:0x14eb63)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2f51fdec64c09b49 (<module>[951]:0xfdb43)
at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2e8a8069be0c9f2f (<module>[399]:0x62b98)
at swc_common::plugin::serialized::PluginSerializedBytes::deserialize::hf5e85413ebd1458b (<module>[96]:0x1995e)
at swc_common::plugin::serialized::deserialize_from_ptr::h5296ff6c7163ba5e (<module>[95]:0x196ef)
at __transform_plugin_process_impl (<module>[525]:0x86526)
at __transform_plugin_process_impl.command_export (<module>[1766]:0x152883)
2: unreachable
at Compiler.transformSync (/home/chris/functionless/new-project/node_modules/@swc/core/index.js:241:29)
at Object.transformSync (/home/chris/functionless/new-project/node_modules/@swc/core/index.js:348:21)
at compile (/home/chris/functionless/new-project/node_modules/@swc/register/lib/node.js:76:22)
at compileHook (/home/chris/functionless/new-project/node_modules/@swc/register/lib/node.js:91:16)
at Module._compile (/home/chris/functionless/new-project/node_modules/pirates/lib/index.js:130:29)
at Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Object.newLoader [as .ts] (/home/chris/functionless/new-project/node_modules/pirates/lib/index.js:141:7)
at Module.load (node:internal/modules/cjs/loader:1004:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
code: 'GenericFailure'
}

Attached package-lock.json from npm, and pnpm-local.yaml from pnpm for comparison
package-lock.json.txt
pnpm-lock.yaml.txt

output of pnpm ls --depth 1:

@aws-cdk/aws-appsync-alpha 2.43.1-alpha.0
├── aws-cdk-lib 2.43.1 peer
└── constructs 10.1.116 peer
@functionless/ast-reflection 0.3.2
└── @swc/core 1.3.3 peer
@functionless/language-service 0.0.4
└── functionless 0.23.6 peer
@types/jest 29.1.0
├── expect 29.1.0
└── pretty-format 29.1.0
@types/node 18.7.23
aws-cdk 2.43.1
└── fsevents 2.3.2
aws-cdk-lib 2.43.1
└── constructs 10.1.116 peer
aws-sdk 2.1225.0
├── buffer 4.9.2
├── events 1.1.1
├── ieee754 1.1.13
├── jmespath 0.16.0
├── querystring 0.2.0
├── sax 1.2.1
├── url 0.10.3
├── util 0.12.4
├── uuid 8.0.0
└── xml2js 0.4.19
constructs 10.1.116
esbuild 0.15.9
├── @esbuild/android-arm 0.15.9
├── @esbuild/linux-loong64 0.15.9
├── esbuild-android-64 0.15.9
├── esbuild-android-arm64 0.15.9
├── esbuild-darwin-64 0.15.9
├── esbuild-darwin-arm64 0.15.9
├── esbuild-freebsd-64 0.15.9
├── esbuild-freebsd-arm64 0.15.9
├── esbuild-linux-32 0.15.9
├── esbuild-linux-64 0.15.9
├── esbuild-linux-arm 0.15.9
├── esbuild-linux-arm64 0.15.9
├── esbuild-linux-mips64le 0.15.9
├── esbuild-linux-ppc64le 0.15.9
├── esbuild-linux-riscv64 0.15.9
├── esbuild-linux-s390x 0.15.9
├── esbuild-netbsd-64 0.15.9
├── esbuild-openbsd-64 0.15.9
├── esbuild-sunos-64 0.15.9
├── esbuild-windows-32 0.15.9
├── esbuild-windows-64 0.15.9
└── esbuild-windows-arm64 0.15.9
functionless 0.23.6
├── @aws-cdk/aws-appsync-alpha 2.43.1-alpha.0 peer
├── @functionless/ast-reflection 0.3.2
├── @functionless/nodejs-closure-serializer 0.1.2
├── @swc/cli 0.1.57
├── @swc/core 1.2.245
├── @swc/register 0.1.10
├── @types/aws-lambda 8.10.106
├── aws-cdk-lib 2.43.1 peer
├── aws-sdk 2.1225.0 peer
├── constructs 10.1.116 peer
├── esbuild 0.15.9 peer
├── fs-extra 10.1.0
├── minimatch 5.1.0
├── source-map 0.7.4
├── typesafe-dynamodb 0.2.3 peer
└── typescript 4.8.4 peer
jest 29.1.1
├── @jest/core 29.1.1
├── @jest/types 29.1.0
├── import-local 3.1.0
└── jest-cli 29.1.1
typesafe-dynamodb 0.2.3
├── @aws-sdk/client-dynamodb 3.180.0
├── @aws-sdk/lib-dynamodb 3.180.0
├── @aws-sdk/smithy-client 3.180.0
├── @aws-sdk/types 3.178.0
├── @aws-sdk/util-dynamodb 3.180.0
├── @types/aws-lambda 8.10.106
└── aws-sdk 2.1225.0
typescript 4.8.4

Output of npm ls --depth 1:

new-project@0.1.0 /home/chris/functionless/new-project
├─┬ @aws-cdk/aws-appsync-alpha@2.43.1-alpha.0
│ ├── aws-cdk-lib@2.44.0 deduped
│ └── constructs@10.1.116 deduped
├─┬ @functionless/ast-reflection@0.3.2
│ └── @swc/core@1.3.3
├─┬ @functionless/language-service@0.0.4
│ └── functionless@0.23.6 deduped invalid: "^0.6.20" from node_modules/@functionless/language-service
├─┬ @types/jest@29.1.0
│ ├── expect@29.1.0
│ └── pretty-format@29.1.0
├── @types/node@18.7.23
├─┬ aws-cdk-lib@2.44.0
│ ├── @balena/dockerignore@1.0.2
│ ├── case@1.6.3
│ ├── constructs@10.1.116 deduped
│ ├── fs-extra@9.1.0
│ ├── ignore@5.2.0
│ ├── jsonschema@1.4.1
│ ├── minimatch@3.1.2
│ ├── punycode@2.1.1
│ ├── semver@7.3.7
│ └── yaml@1.10.2
├─┬ aws-cdk@2.44.0
│ └── UNMET OPTIONAL DEPENDENCY fsevents@2.3.2
├─┬ aws-sdk@2.1225.0
│ ├── buffer@4.9.2
│ ├── events@1.1.1
│ ├── ieee754@1.1.13
│ ├── jmespath@0.16.0
│ ├── querystring@0.2.0
│ ├── sax@1.2.1
│ ├── url@0.10.3
│ ├── util@0.12.4
│ ├── uuid@8.0.0
│ └── xml2js@0.4.19
├── constructs@10.1.116
├─┬ esbuild@0.15.10
│ ├── UNMET OPTIONAL DEPENDENCY @esbuild/android-arm@0.15.10
│ ├── UNMET OPTIONAL DEPENDENCY @esbuild/linux-loong64@0.15.10
│ ├── UNMET OPTIONAL DEPENDENCY esbuild-android-64@0.15.10
│ ├── UNMET OPTIONAL DEPENDENCY esbuild-android-arm64@0.15.10
│ ├── UNMET OPTIONAL DEPENDENCY esbuild-darwin-64@0.15.10
│ ├── UNMET OPTIONAL DEPENDENCY esbuild-darwin-arm64@0.15.10
│ ├── UNMET OPTIONAL DEPENDENCY esbuild-freebsd-64@0.15.10
│ ├── UNMET OPTIONAL DEPENDENCY esbuild-freebsd-arm64@0.15.10
│ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-32@0.15.10
│ ├── esbuild-linux-64@0.15.10
│ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-arm@0.15.10
│ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-arm64@0.15.10
│ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-mips64le@0.15.10
│ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-ppc64le@0.15.10
│ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-riscv64@0.15.10
│ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-s390x@0.15.10
│ ├── UNMET OPTIONAL DEPENDENCY esbuild-netbsd-64@0.15.10
│ ├── UNMET OPTIONAL DEPENDENCY esbuild-openbsd-64@0.15.10
│ ├── UNMET OPTIONAL DEPENDENCY esbuild-sunos-64@0.15.10
│ ├── UNMET OPTIONAL DEPENDENCY esbuild-windows-32@0.15.10
│ ├── UNMET OPTIONAL DEPENDENCY esbuild-windows-64@0.15.10
│ └── UNMET OPTIONAL DEPENDENCY esbuild-windows-arm64@0.15.10
├─┬ functionless@0.23.6 invalid: "^0.6.20" from node_modules/@functionless/language-service
│ ├── @aws-cdk/aws-appsync-alpha@2.43.1-alpha.0 deduped
│ ├── @functionless/ast-reflection@0.3.2 deduped
│ ├── @functionless/nodejs-closure-serializer@0.1.2
│ ├── @swc/cli@0.1.57
│ ├── @swc/core@1.2.245
│ ├── @swc/register@0.1.10
│ ├── @types/aws-lambda@8.10.106
│ ├── aws-cdk-lib@2.44.0 deduped
│ ├── aws-sdk@2.1225.0 deduped
│ ├── constructs@10.1.116 deduped
│ ├── esbuild@0.15.10 deduped
│ ├── fs-extra@10.1.0
│ ├── minimatch@5.1.0
│ ├── source-map@0.7.4
│ ├── typesafe-dynamodb@0.2.3 deduped invalid: "^0.1.5" from node_modules/functionless
│ └── typescript@4.8.4 deduped
├─┬ jest@29.1.1
│ ├── @jest/core@29.1.1
│ ├── @jest/types@29.1.0
│ ├── import-local@3.1.0
│ ├── jest-cli@29.1.1
│ └── UNMET OPTIONAL DEPENDENCY node-notifier@^8.0.1 || ^9.0.0 || ^10.0.0
├─┬ typesafe-dynamodb@0.2.3 invalid: "^0.1.5" from node_modules/functionless
│ ├── @aws-sdk/client-dynamodb@3.180.0
│ ├── @aws-sdk/lib-dynamodb@3.180.0
│ ├── @aws-sdk/smithy-client@3.180.0
│ ├── @aws-sdk/types@3.178.0
│ ├── @aws-sdk/util-dynamodb@3.180.0
│ ├── @types/aws-lambda@8.10.106 deduped
│ └── aws-sdk@2.1225.0 deduped
└── typescript@4.8.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
       blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
      }
      } catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
      })();
      (function(){
      try {
      var __m = "github.com";
      var __re = new RegExp('^' + "github\\.com" + '
      
      Skip to content
      This repository was archived by the owner on Jun 11, 2026. It is now read-only.
      This repository was archived by the owner on Jun 11, 2026. It is now read-only.

      create-functionless-app: Created app cannot synth when using npm #528

      Description

      @cfraz89

      Synth fails when project is created/deps installed in npm, though not through yarn or pnpm
      npm cdk synth results in:

      
      thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: LayoutError', /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/rkyv-0.7.37/src/impls/core/mod.rs:265:67
      note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
      thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/home/chris/functionless/new-project/src/app.ts")'
      Caused by:
      0: failed to invoke `@functionless/ast-reflection` as js transform plugin at node_modules/@functionless/ast-reflection/ast_reflection.wasm
      1: RuntimeError: unreachable
      at __rust_start_panic (<module>[1581]:0x1470e8)
      at rust_panic (<module>[1574]:0x146e2d)
      at std::panicking::rust_panic_with_hook::h34503c79e5f975a0 (<module>[1573]:0x146daa)
      at std::panicking::begin_panic_handler::{{closure}}::h12a46dd1ec9ad9ef (<module>[1560]:0x146010)
      at std::sys_common::backtrace::__rust_end_short_backtrace::hbfd28f296b351783 (<module>[1559]:0x145f4f)
      at rust_begin_unwind (<module>[1568]:0x1466fa)
      at core::panicking::panic_fmt::h7092b9385b17ba68 (<module>[1666]:0x14d0d1)
      at core::result::unwrap_failed::hcf4dc3db6a31deee (<module>[1705]:0x14eb63)
      at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2f51fdec64c09b49 (<module>[951]:0xfdb43)
      at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2e8a8069be0c9f2f (<module>[399]:0x62b98)
      at swc_common::plugin::serialized::PluginSerializedBytes::deserialize::hf5e85413ebd1458b (<module>[96]:0x1995e)
      at swc_common::plugin::serialized::deserialize_from_ptr::h5296ff6c7163ba5e (<module>[95]:0x196ef)
      at __transform_plugin_process_impl (<module>[525]:0x86526)
      at __transform_plugin_process_impl.command_export (<module>[1766]:0x152883)
      2: unreachable', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.228.0/src/plugin.rs:228:14
      stack backtrace:
      0: 0x7f7e0225b19d - <unknown>
      1: 0x7f7e0228334c - <unknown>
      2: 0x7f7e02256a11 - <unknown>
      3: 0x7f7e0225cac5 - <unknown>
      4: 0x7f7e0225c7e6 - <unknown>
      5: 0x7f7e0225d056 - <unknown>
      6: 0x7f7e0225cf47 - <unknown>
      7: 0x7f7e0225b654 - <unknown>
      8: 0x7f7e0225cc79 - <unknown>
      9: 0x7f7e00602233 - <unknown>
      10: 0x7f7e00602323 - <unknown>
      11: 0x7f7e00dd483e - <unknown>
      12: 0x7f7e00ee26ab - <unknown>
      13: 0x7f7e00de1ebd - <unknown>
      14: 0x7f7e00ddb538 - <unknown>
      15: 0x7f7e008943dc - <unknown>
      16: 0x7f7e00896375 - <unknown>
      17: 0x7f7e007b546f - <unknown>
      18: 0x7f7e00888a01 - <unknown>
      19: 0x7f7e008005de - <unknown>
      20: 0xaaf64d - _ZN6v8impl12_GLOBAL__N_123FunctionCallbackWrapper6InvokeERKN2v820FunctionCallbackInfoINS2_5ValueEEE
      21: 0xd396ae - _ZN2v88internal12_GLOBAL__N_119HandleApiCallHelperILb0EEENS0_11MaybeHandleINS0_6ObjectEEEPNS0_7IsolateENS0_6HandleINS0_10HeapObjectEEESA_NS8_INS0_20FunctionTemplateInfoEEENS8_IS4_EENS0_16BuiltinArgumentsE
      22: 0xd3aacf - _ZN2v88internal21Builtin_HandleApiCallEiPmPNS0_7IsolateE
      23: 0x15d5519 - Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit
      /home/chris/functionless/new-project/node_modules/@swc/core/index.js:241
      return bindings.transformSync(isModule ? JSON.stringify(src) : src, isModule, toBuffer(newOptions));
      ^
      Error: failed to handle: failed to invoke plugin: failed to invoke plugin on 'Some("/home/chris/functionless/new-project/src/app.ts")'
      Caused by:
      0: failed to invoke `@functionless/ast-reflection` as js transform plugin at node_modules/@functionless/ast-reflection/ast_reflection.wasm
      1: RuntimeError: unreachable
      at __rust_start_panic (<module>[1581]:0x1470e8)
      at rust_panic (<module>[1574]:0x146e2d)
      at std::panicking::rust_panic_with_hook::h34503c79e5f975a0 (<module>[1573]:0x146daa)
      at std::panicking::begin_panic_handler::{{closure}}::h12a46dd1ec9ad9ef (<module>[1560]:0x146010)
      at std::sys_common::backtrace::__rust_end_short_backtrace::hbfd28f296b351783 (<module>[1559]:0x145f4f)
      at rust_begin_unwind (<module>[1568]:0x1466fa)
      at core::panicking::panic_fmt::h7092b9385b17ba68 (<module>[1666]:0x14d0d1)
      at core::result::unwrap_failed::hcf4dc3db6a31deee (<module>[1705]:0x14eb63)
      at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2f51fdec64c09b49 (<module>[951]:0xfdb43)
      at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2e8a8069be0c9f2f (<module>[399]:0x62b98)
      at swc_common::plugin::serialized::PluginSerializedBytes::deserialize::hf5e85413ebd1458b (<module>[96]:0x1995e)
      at swc_common::plugin::serialized::deserialize_from_ptr::h5296ff6c7163ba5e (<module>[95]:0x196ef)
      at __transform_plugin_process_impl (<module>[525]:0x86526)
      at __transform_plugin_process_impl.command_export (<module>[1766]:0x152883)
      2: unreachable
      at Compiler.transformSync (/home/chris/functionless/new-project/node_modules/@swc/core/index.js:241:29)
      at Object.transformSync (/home/chris/functionless/new-project/node_modules/@swc/core/index.js:348:21)
      at compile (/home/chris/functionless/new-project/node_modules/@swc/register/lib/node.js:76:22)
      at compileHook (/home/chris/functionless/new-project/node_modules/@swc/register/lib/node.js:91:16)
      at Module._compile (/home/chris/functionless/new-project/node_modules/pirates/lib/index.js:130:29)
      at Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
      at Object.newLoader [as .ts] (/home/chris/functionless/new-project/node_modules/pirates/lib/index.js:141:7)
      at Module.load (node:internal/modules/cjs/loader:1004:32)
      at Function.Module._load (node:internal/modules/cjs/loader:839:12)
      at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
      code: 'GenericFailure'
      }
      

      Attached package-lock.json from npm, and pnpm-local.yaml from pnpm for comparison
      package-lock.json.txt
      pnpm-lock.yaml.txt

      output of pnpm ls --depth 1:

      @aws-cdk/aws-appsync-alpha 2.43.1-alpha.0
      ├── aws-cdk-lib 2.43.1 peer
      └── constructs 10.1.116 peer
      @functionless/ast-reflection 0.3.2
      └── @swc/core 1.3.3 peer
      @functionless/language-service 0.0.4
      └── functionless 0.23.6 peer
      @types/jest 29.1.0
      ├── expect 29.1.0
      └── pretty-format 29.1.0
      @types/node 18.7.23
      aws-cdk 2.43.1
      └── fsevents 2.3.2
      aws-cdk-lib 2.43.1
      └── constructs 10.1.116 peer
      aws-sdk 2.1225.0
      ├── buffer 4.9.2
      ├── events 1.1.1
      ├── ieee754 1.1.13
      ├── jmespath 0.16.0
      ├── querystring 0.2.0
      ├── sax 1.2.1
      ├── url 0.10.3
      ├── util 0.12.4
      ├── uuid 8.0.0
      └── xml2js 0.4.19
      constructs 10.1.116
      esbuild 0.15.9
      ├── @esbuild/android-arm 0.15.9
      ├── @esbuild/linux-loong64 0.15.9
      ├── esbuild-android-64 0.15.9
      ├── esbuild-android-arm64 0.15.9
      ├── esbuild-darwin-64 0.15.9
      ├── esbuild-darwin-arm64 0.15.9
      ├── esbuild-freebsd-64 0.15.9
      ├── esbuild-freebsd-arm64 0.15.9
      ├── esbuild-linux-32 0.15.9
      ├── esbuild-linux-64 0.15.9
      ├── esbuild-linux-arm 0.15.9
      ├── esbuild-linux-arm64 0.15.9
      ├── esbuild-linux-mips64le 0.15.9
      ├── esbuild-linux-ppc64le 0.15.9
      ├── esbuild-linux-riscv64 0.15.9
      ├── esbuild-linux-s390x 0.15.9
      ├── esbuild-netbsd-64 0.15.9
      ├── esbuild-openbsd-64 0.15.9
      ├── esbuild-sunos-64 0.15.9
      ├── esbuild-windows-32 0.15.9
      ├── esbuild-windows-64 0.15.9
      └── esbuild-windows-arm64 0.15.9
      functionless 0.23.6
      ├── @aws-cdk/aws-appsync-alpha 2.43.1-alpha.0 peer
      ├── @functionless/ast-reflection 0.3.2
      ├── @functionless/nodejs-closure-serializer 0.1.2
      ├── @swc/cli 0.1.57
      ├── @swc/core 1.2.245
      ├── @swc/register 0.1.10
      ├── @types/aws-lambda 8.10.106
      ├── aws-cdk-lib 2.43.1 peer
      ├── aws-sdk 2.1225.0 peer
      ├── constructs 10.1.116 peer
      ├── esbuild 0.15.9 peer
      ├── fs-extra 10.1.0
      ├── minimatch 5.1.0
      ├── source-map 0.7.4
      ├── typesafe-dynamodb 0.2.3 peer
      └── typescript 4.8.4 peer
      jest 29.1.1
      ├── @jest/core 29.1.1
      ├── @jest/types 29.1.0
      ├── import-local 3.1.0
      └── jest-cli 29.1.1
      typesafe-dynamodb 0.2.3
      ├── @aws-sdk/client-dynamodb 3.180.0
      ├── @aws-sdk/lib-dynamodb 3.180.0
      ├── @aws-sdk/smithy-client 3.180.0
      ├── @aws-sdk/types 3.178.0
      ├── @aws-sdk/util-dynamodb 3.180.0
      ├── @types/aws-lambda 8.10.106
      └── aws-sdk 2.1225.0
      typescript 4.8.4
      

      Output of npm ls --depth 1:

      new-project@0.1.0 /home/chris/functionless/new-project
      ├─┬ @aws-cdk/aws-appsync-alpha@2.43.1-alpha.0
      │ ├── aws-cdk-lib@2.44.0 deduped
      │ └── constructs@10.1.116 deduped
      ├─┬ @functionless/ast-reflection@0.3.2
      │ └── @swc/core@1.3.3
      ├─┬ @functionless/language-service@0.0.4
      │ └── functionless@0.23.6 deduped invalid: "^0.6.20" from node_modules/@functionless/language-service
      ├─┬ @types/jest@29.1.0
      │ ├── expect@29.1.0
      │ └── pretty-format@29.1.0
      ├── @types/node@18.7.23
      ├─┬ aws-cdk-lib@2.44.0
      │ ├── @balena/dockerignore@1.0.2
      │ ├── case@1.6.3
      │ ├── constructs@10.1.116 deduped
      │ ├── fs-extra@9.1.0
      │ ├── ignore@5.2.0
      │ ├── jsonschema@1.4.1
      │ ├── minimatch@3.1.2
      │ ├── punycode@2.1.1
      │ ├── semver@7.3.7
      │ └── yaml@1.10.2
      ├─┬ aws-cdk@2.44.0
      │ └── UNMET OPTIONAL DEPENDENCY fsevents@2.3.2
      ├─┬ aws-sdk@2.1225.0
      │ ├── buffer@4.9.2
      │ ├── events@1.1.1
      │ ├── ieee754@1.1.13
      │ ├── jmespath@0.16.0
      │ ├── querystring@0.2.0
      │ ├── sax@1.2.1
      │ ├── url@0.10.3
      │ ├── util@0.12.4
      │ ├── uuid@8.0.0
      │ └── xml2js@0.4.19
      ├── constructs@10.1.116
      ├─┬ esbuild@0.15.10
      │ ├── UNMET OPTIONAL DEPENDENCY @esbuild/android-arm@0.15.10
      │ ├── UNMET OPTIONAL DEPENDENCY @esbuild/linux-loong64@0.15.10
      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-android-64@0.15.10
      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-android-arm64@0.15.10
      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-darwin-64@0.15.10
      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-darwin-arm64@0.15.10
      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-freebsd-64@0.15.10
      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-freebsd-arm64@0.15.10
      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-32@0.15.10
      │ ├── esbuild-linux-64@0.15.10
      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-arm@0.15.10
      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-arm64@0.15.10
      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-mips64le@0.15.10
      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-ppc64le@0.15.10
      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-riscv64@0.15.10
      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-s390x@0.15.10
      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-netbsd-64@0.15.10
      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-openbsd-64@0.15.10
      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-sunos-64@0.15.10
      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-windows-32@0.15.10
      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-windows-64@0.15.10
      │ └── UNMET OPTIONAL DEPENDENCY esbuild-windows-arm64@0.15.10
      ├─┬ functionless@0.23.6 invalid: "^0.6.20" from node_modules/@functionless/language-service
      │ ├── @aws-cdk/aws-appsync-alpha@2.43.1-alpha.0 deduped
      │ ├── @functionless/ast-reflection@0.3.2 deduped
      │ ├── @functionless/nodejs-closure-serializer@0.1.2
      │ ├── @swc/cli@0.1.57
      │ ├── @swc/core@1.2.245
      │ ├── @swc/register@0.1.10
      │ ├── @types/aws-lambda@8.10.106
      │ ├── aws-cdk-lib@2.44.0 deduped
      │ ├── aws-sdk@2.1225.0 deduped
      │ ├── constructs@10.1.116 deduped
      │ ├── esbuild@0.15.10 deduped
      │ ├── fs-extra@10.1.0
      │ ├── minimatch@5.1.0
      │ ├── source-map@0.7.4
      │ ├── typesafe-dynamodb@0.2.3 deduped invalid: "^0.1.5" from node_modules/functionless
      │ └── typescript@4.8.4 deduped
      ├─┬ jest@29.1.1
      │ ├── @jest/core@29.1.1
      │ ├── @jest/types@29.1.0
      │ ├── import-local@3.1.0
      │ ├── jest-cli@29.1.1
      │ └── UNMET OPTIONAL DEPENDENCY node-notifier@^8.0.1 || ^9.0.0 || ^10.0.0
      ├─┬ typesafe-dynamodb@0.2.3 invalid: "^0.1.5" from node_modules/functionless
      │ ├── @aws-sdk/client-dynamodb@3.180.0
      │ ├── @aws-sdk/lib-dynamodb@3.180.0
      │ ├── @aws-sdk/smithy-client@3.180.0
      │ ├── @aws-sdk/types@3.178.0
      │ ├── @aws-sdk/util-dynamodb@3.180.0
      │ ├── @types/aws-lambda@8.10.106 deduped
      │ └── aws-sdk@2.1225.0 deduped
      └── typescript@4.8.4
      

      Metadata

      Metadata

      Assignees

      No one assigned

        Labels

        No labels
        No labels

        Projects

        No projects

          Milestone

          No milestone

          Relationships

          None yet

          Development

          No branches or pull requests

          Issue actions

          , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
          Skip to content
          This repository was archived by the owner on Jun 11, 2026. It is now read-only.
          This repository was archived by the owner on Jun 11, 2026. It is now read-only.

          create-functionless-app: Created app cannot synth when using npm #528

          Description

          @cfraz89

          Synth fails when project is created/deps installed in npm, though not through yarn or pnpm
          npm cdk synth results in:

          
          thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: LayoutError', /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/rkyv-0.7.37/src/impls/core/mod.rs:265:67
          note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
          thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/home/chris/functionless/new-project/src/app.ts")'
          Caused by:
          0: failed to invoke `@functionless/ast-reflection` as js transform plugin at node_modules/@functionless/ast-reflection/ast_reflection.wasm
          1: RuntimeError: unreachable
          at __rust_start_panic (<module>[1581]:0x1470e8)
          at rust_panic (<module>[1574]:0x146e2d)
          at std::panicking::rust_panic_with_hook::h34503c79e5f975a0 (<module>[1573]:0x146daa)
          at std::panicking::begin_panic_handler::{{closure}}::h12a46dd1ec9ad9ef (<module>[1560]:0x146010)
          at std::sys_common::backtrace::__rust_end_short_backtrace::hbfd28f296b351783 (<module>[1559]:0x145f4f)
          at rust_begin_unwind (<module>[1568]:0x1466fa)
          at core::panicking::panic_fmt::h7092b9385b17ba68 (<module>[1666]:0x14d0d1)
          at core::result::unwrap_failed::hcf4dc3db6a31deee (<module>[1705]:0x14eb63)
          at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2f51fdec64c09b49 (<module>[951]:0xfdb43)
          at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2e8a8069be0c9f2f (<module>[399]:0x62b98)
          at swc_common::plugin::serialized::PluginSerializedBytes::deserialize::hf5e85413ebd1458b (<module>[96]:0x1995e)
          at swc_common::plugin::serialized::deserialize_from_ptr::h5296ff6c7163ba5e (<module>[95]:0x196ef)
          at __transform_plugin_process_impl (<module>[525]:0x86526)
          at __transform_plugin_process_impl.command_export (<module>[1766]:0x152883)
          2: unreachable', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.228.0/src/plugin.rs:228:14
          stack backtrace:
          0: 0x7f7e0225b19d - <unknown>
          1: 0x7f7e0228334c - <unknown>
          2: 0x7f7e02256a11 - <unknown>
          3: 0x7f7e0225cac5 - <unknown>
          4: 0x7f7e0225c7e6 - <unknown>
          5: 0x7f7e0225d056 - <unknown>
          6: 0x7f7e0225cf47 - <unknown>
          7: 0x7f7e0225b654 - <unknown>
          8: 0x7f7e0225cc79 - <unknown>
          9: 0x7f7e00602233 - <unknown>
          10: 0x7f7e00602323 - <unknown>
          11: 0x7f7e00dd483e - <unknown>
          12: 0x7f7e00ee26ab - <unknown>
          13: 0x7f7e00de1ebd - <unknown>
          14: 0x7f7e00ddb538 - <unknown>
          15: 0x7f7e008943dc - <unknown>
          16: 0x7f7e00896375 - <unknown>
          17: 0x7f7e007b546f - <unknown>
          18: 0x7f7e00888a01 - <unknown>
          19: 0x7f7e008005de - <unknown>
          20: 0xaaf64d - _ZN6v8impl12_GLOBAL__N_123FunctionCallbackWrapper6InvokeERKN2v820FunctionCallbackInfoINS2_5ValueEEE
          21: 0xd396ae - _ZN2v88internal12_GLOBAL__N_119HandleApiCallHelperILb0EEENS0_11MaybeHandleINS0_6ObjectEEEPNS0_7IsolateENS0_6HandleINS0_10HeapObjectEEESA_NS8_INS0_20FunctionTemplateInfoEEENS8_IS4_EENS0_16BuiltinArgumentsE
          22: 0xd3aacf - _ZN2v88internal21Builtin_HandleApiCallEiPmPNS0_7IsolateE
          23: 0x15d5519 - Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit
          /home/chris/functionless/new-project/node_modules/@swc/core/index.js:241
          return bindings.transformSync(isModule ? JSON.stringify(src) : src, isModule, toBuffer(newOptions));
          ^
          Error: failed to handle: failed to invoke plugin: failed to invoke plugin on 'Some("/home/chris/functionless/new-project/src/app.ts")'
          Caused by:
          0: failed to invoke `@functionless/ast-reflection` as js transform plugin at node_modules/@functionless/ast-reflection/ast_reflection.wasm
          1: RuntimeError: unreachable
          at __rust_start_panic (<module>[1581]:0x1470e8)
          at rust_panic (<module>[1574]:0x146e2d)
          at std::panicking::rust_panic_with_hook::h34503c79e5f975a0 (<module>[1573]:0x146daa)
          at std::panicking::begin_panic_handler::{{closure}}::h12a46dd1ec9ad9ef (<module>[1560]:0x146010)
          at std::sys_common::backtrace::__rust_end_short_backtrace::hbfd28f296b351783 (<module>[1559]:0x145f4f)
          at rust_begin_unwind (<module>[1568]:0x1466fa)
          at core::panicking::panic_fmt::h7092b9385b17ba68 (<module>[1666]:0x14d0d1)
          at core::result::unwrap_failed::hcf4dc3db6a31deee (<module>[1705]:0x14eb63)
          at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2f51fdec64c09b49 (<module>[951]:0xfdb43)
          at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2e8a8069be0c9f2f (<module>[399]:0x62b98)
          at swc_common::plugin::serialized::PluginSerializedBytes::deserialize::hf5e85413ebd1458b (<module>[96]:0x1995e)
          at swc_common::plugin::serialized::deserialize_from_ptr::h5296ff6c7163ba5e (<module>[95]:0x196ef)
          at __transform_plugin_process_impl (<module>[525]:0x86526)
          at __transform_plugin_process_impl.command_export (<module>[1766]:0x152883)
          2: unreachable
          at Compiler.transformSync (/home/chris/functionless/new-project/node_modules/@swc/core/index.js:241:29)
          at Object.transformSync (/home/chris/functionless/new-project/node_modules/@swc/core/index.js:348:21)
          at compile (/home/chris/functionless/new-project/node_modules/@swc/register/lib/node.js:76:22)
          at compileHook (/home/chris/functionless/new-project/node_modules/@swc/register/lib/node.js:91:16)
          at Module._compile (/home/chris/functionless/new-project/node_modules/pirates/lib/index.js:130:29)
          at Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
          at Object.newLoader [as .ts] (/home/chris/functionless/new-project/node_modules/pirates/lib/index.js:141:7)
          at Module.load (node:internal/modules/cjs/loader:1004:32)
          at Function.Module._load (node:internal/modules/cjs/loader:839:12)
          at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
          code: 'GenericFailure'
          }
          

          Attached package-lock.json from npm, and pnpm-local.yaml from pnpm for comparison
          package-lock.json.txt
          pnpm-lock.yaml.txt

          output of pnpm ls --depth 1:

          @aws-cdk/aws-appsync-alpha 2.43.1-alpha.0
          ├── aws-cdk-lib 2.43.1 peer
          └── constructs 10.1.116 peer
          @functionless/ast-reflection 0.3.2
          └── @swc/core 1.3.3 peer
          @functionless/language-service 0.0.4
          └── functionless 0.23.6 peer
          @types/jest 29.1.0
          ├── expect 29.1.0
          └── pretty-format 29.1.0
          @types/node 18.7.23
          aws-cdk 2.43.1
          └── fsevents 2.3.2
          aws-cdk-lib 2.43.1
          └── constructs 10.1.116 peer
          aws-sdk 2.1225.0
          ├── buffer 4.9.2
          ├── events 1.1.1
          ├── ieee754 1.1.13
          ├── jmespath 0.16.0
          ├── querystring 0.2.0
          ├── sax 1.2.1
          ├── url 0.10.3
          ├── util 0.12.4
          ├── uuid 8.0.0
          └── xml2js 0.4.19
          constructs 10.1.116
          esbuild 0.15.9
          ├── @esbuild/android-arm 0.15.9
          ├── @esbuild/linux-loong64 0.15.9
          ├── esbuild-android-64 0.15.9
          ├── esbuild-android-arm64 0.15.9
          ├── esbuild-darwin-64 0.15.9
          ├── esbuild-darwin-arm64 0.15.9
          ├── esbuild-freebsd-64 0.15.9
          ├── esbuild-freebsd-arm64 0.15.9
          ├── esbuild-linux-32 0.15.9
          ├── esbuild-linux-64 0.15.9
          ├── esbuild-linux-arm 0.15.9
          ├── esbuild-linux-arm64 0.15.9
          ├── esbuild-linux-mips64le 0.15.9
          ├── esbuild-linux-ppc64le 0.15.9
          ├── esbuild-linux-riscv64 0.15.9
          ├── esbuild-linux-s390x 0.15.9
          ├── esbuild-netbsd-64 0.15.9
          ├── esbuild-openbsd-64 0.15.9
          ├── esbuild-sunos-64 0.15.9
          ├── esbuild-windows-32 0.15.9
          ├── esbuild-windows-64 0.15.9
          └── esbuild-windows-arm64 0.15.9
          functionless 0.23.6
          ├── @aws-cdk/aws-appsync-alpha 2.43.1-alpha.0 peer
          ├── @functionless/ast-reflection 0.3.2
          ├── @functionless/nodejs-closure-serializer 0.1.2
          ├── @swc/cli 0.1.57
          ├── @swc/core 1.2.245
          ├── @swc/register 0.1.10
          ├── @types/aws-lambda 8.10.106
          ├── aws-cdk-lib 2.43.1 peer
          ├── aws-sdk 2.1225.0 peer
          ├── constructs 10.1.116 peer
          ├── esbuild 0.15.9 peer
          ├── fs-extra 10.1.0
          ├── minimatch 5.1.0
          ├── source-map 0.7.4
          ├── typesafe-dynamodb 0.2.3 peer
          └── typescript 4.8.4 peer
          jest 29.1.1
          ├── @jest/core 29.1.1
          ├── @jest/types 29.1.0
          ├── import-local 3.1.0
          └── jest-cli 29.1.1
          typesafe-dynamodb 0.2.3
          ├── @aws-sdk/client-dynamodb 3.180.0
          ├── @aws-sdk/lib-dynamodb 3.180.0
          ├── @aws-sdk/smithy-client 3.180.0
          ├── @aws-sdk/types 3.178.0
          ├── @aws-sdk/util-dynamodb 3.180.0
          ├── @types/aws-lambda 8.10.106
          └── aws-sdk 2.1225.0
          typescript 4.8.4
          

          Output of npm ls --depth 1:

          new-project@0.1.0 /home/chris/functionless/new-project
          ├─┬ @aws-cdk/aws-appsync-alpha@2.43.1-alpha.0
          │ ├── aws-cdk-lib@2.44.0 deduped
          │ └── constructs@10.1.116 deduped
          ├─┬ @functionless/ast-reflection@0.3.2
          │ └── @swc/core@1.3.3
          ├─┬ @functionless/language-service@0.0.4
          │ └── functionless@0.23.6 deduped invalid: "^0.6.20" from node_modules/@functionless/language-service
          ├─┬ @types/jest@29.1.0
          │ ├── expect@29.1.0
          │ └── pretty-format@29.1.0
          ├── @types/node@18.7.23
          ├─┬ aws-cdk-lib@2.44.0
          │ ├── @balena/dockerignore@1.0.2
          │ ├── case@1.6.3
          │ ├── constructs@10.1.116 deduped
          │ ├── fs-extra@9.1.0
          │ ├── ignore@5.2.0
          │ ├── jsonschema@1.4.1
          │ ├── minimatch@3.1.2
          │ ├── punycode@2.1.1
          │ ├── semver@7.3.7
          │ └── yaml@1.10.2
          ├─┬ aws-cdk@2.44.0
          │ └── UNMET OPTIONAL DEPENDENCY fsevents@2.3.2
          ├─┬ aws-sdk@2.1225.0
          │ ├── buffer@4.9.2
          │ ├── events@1.1.1
          │ ├── ieee754@1.1.13
          │ ├── jmespath@0.16.0
          │ ├── querystring@0.2.0
          │ ├── sax@1.2.1
          │ ├── url@0.10.3
          │ ├── util@0.12.4
          │ ├── uuid@8.0.0
          │ └── xml2js@0.4.19
          ├── constructs@10.1.116
          ├─┬ esbuild@0.15.10
          │ ├── UNMET OPTIONAL DEPENDENCY @esbuild/android-arm@0.15.10
          │ ├── UNMET OPTIONAL DEPENDENCY @esbuild/linux-loong64@0.15.10
          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-android-64@0.15.10
          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-android-arm64@0.15.10
          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-darwin-64@0.15.10
          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-darwin-arm64@0.15.10
          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-freebsd-64@0.15.10
          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-freebsd-arm64@0.15.10
          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-32@0.15.10
          │ ├── esbuild-linux-64@0.15.10
          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-arm@0.15.10
          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-arm64@0.15.10
          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-mips64le@0.15.10
          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-ppc64le@0.15.10
          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-riscv64@0.15.10
          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-s390x@0.15.10
          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-netbsd-64@0.15.10
          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-openbsd-64@0.15.10
          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-sunos-64@0.15.10
          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-windows-32@0.15.10
          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-windows-64@0.15.10
          │ └── UNMET OPTIONAL DEPENDENCY esbuild-windows-arm64@0.15.10
          ├─┬ functionless@0.23.6 invalid: "^0.6.20" from node_modules/@functionless/language-service
          │ ├── @aws-cdk/aws-appsync-alpha@2.43.1-alpha.0 deduped
          │ ├── @functionless/ast-reflection@0.3.2 deduped
          │ ├── @functionless/nodejs-closure-serializer@0.1.2
          │ ├── @swc/cli@0.1.57
          │ ├── @swc/core@1.2.245
          │ ├── @swc/register@0.1.10
          │ ├── @types/aws-lambda@8.10.106
          │ ├── aws-cdk-lib@2.44.0 deduped
          │ ├── aws-sdk@2.1225.0 deduped
          │ ├── constructs@10.1.116 deduped
          │ ├── esbuild@0.15.10 deduped
          │ ├── fs-extra@10.1.0
          │ ├── minimatch@5.1.0
          │ ├── source-map@0.7.4
          │ ├── typesafe-dynamodb@0.2.3 deduped invalid: "^0.1.5" from node_modules/functionless
          │ └── typescript@4.8.4 deduped
          ├─┬ jest@29.1.1
          │ ├── @jest/core@29.1.1
          │ ├── @jest/types@29.1.0
          │ ├── import-local@3.1.0
          │ ├── jest-cli@29.1.1
          │ └── UNMET OPTIONAL DEPENDENCY node-notifier@^8.0.1 || ^9.0.0 || ^10.0.0
          ├─┬ typesafe-dynamodb@0.2.3 invalid: "^0.1.5" from node_modules/functionless
          │ ├── @aws-sdk/client-dynamodb@3.180.0
          │ ├── @aws-sdk/lib-dynamodb@3.180.0
          │ ├── @aws-sdk/smithy-client@3.180.0
          │ ├── @aws-sdk/types@3.178.0
          │ ├── @aws-sdk/util-dynamodb@3.180.0
          │ ├── @types/aws-lambda@8.10.106 deduped
          │ └── aws-sdk@2.1225.0 deduped
          └── typescript@4.8.4
          

          Metadata

          Metadata

          Assignees

          No one assigned

            Labels

            No labels
            No labels

            Projects

            No projects

              Milestone

              No milestone

              Relationships

              None yet

              Development

              No branches or pull requests

              Issue actions

              , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
              Skip to content
              This repository was archived by the owner on Jun 11, 2026. It is now read-only.
              This repository was archived by the owner on Jun 11, 2026. It is now read-only.

              create-functionless-app: Created app cannot synth when using npm #528

              Description

              @cfraz89

              Synth fails when project is created/deps installed in npm, though not through yarn or pnpm
              npm cdk synth results in:

              
              thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: LayoutError', /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/rkyv-0.7.37/src/impls/core/mod.rs:265:67
              note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
              thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/home/chris/functionless/new-project/src/app.ts")'
              Caused by:
              0: failed to invoke `@functionless/ast-reflection` as js transform plugin at node_modules/@functionless/ast-reflection/ast_reflection.wasm
              1: RuntimeError: unreachable
              at __rust_start_panic (<module>[1581]:0x1470e8)
              at rust_panic (<module>[1574]:0x146e2d)
              at std::panicking::rust_panic_with_hook::h34503c79e5f975a0 (<module>[1573]:0x146daa)
              at std::panicking::begin_panic_handler::{{closure}}::h12a46dd1ec9ad9ef (<module>[1560]:0x146010)
              at std::sys_common::backtrace::__rust_end_short_backtrace::hbfd28f296b351783 (<module>[1559]:0x145f4f)
              at rust_begin_unwind (<module>[1568]:0x1466fa)
              at core::panicking::panic_fmt::h7092b9385b17ba68 (<module>[1666]:0x14d0d1)
              at core::result::unwrap_failed::hcf4dc3db6a31deee (<module>[1705]:0x14eb63)
              at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2f51fdec64c09b49 (<module>[951]:0xfdb43)
              at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2e8a8069be0c9f2f (<module>[399]:0x62b98)
              at swc_common::plugin::serialized::PluginSerializedBytes::deserialize::hf5e85413ebd1458b (<module>[96]:0x1995e)
              at swc_common::plugin::serialized::deserialize_from_ptr::h5296ff6c7163ba5e (<module>[95]:0x196ef)
              at __transform_plugin_process_impl (<module>[525]:0x86526)
              at __transform_plugin_process_impl.command_export (<module>[1766]:0x152883)
              2: unreachable', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.228.0/src/plugin.rs:228:14
              stack backtrace:
              0: 0x7f7e0225b19d - <unknown>
              1: 0x7f7e0228334c - <unknown>
              2: 0x7f7e02256a11 - <unknown>
              3: 0x7f7e0225cac5 - <unknown>
              4: 0x7f7e0225c7e6 - <unknown>
              5: 0x7f7e0225d056 - <unknown>
              6: 0x7f7e0225cf47 - <unknown>
              7: 0x7f7e0225b654 - <unknown>
              8: 0x7f7e0225cc79 - <unknown>
              9: 0x7f7e00602233 - <unknown>
              10: 0x7f7e00602323 - <unknown>
              11: 0x7f7e00dd483e - <unknown>
              12: 0x7f7e00ee26ab - <unknown>
              13: 0x7f7e00de1ebd - <unknown>
              14: 0x7f7e00ddb538 - <unknown>
              15: 0x7f7e008943dc - <unknown>
              16: 0x7f7e00896375 - <unknown>
              17: 0x7f7e007b546f - <unknown>
              18: 0x7f7e00888a01 - <unknown>
              19: 0x7f7e008005de - <unknown>
              20: 0xaaf64d - _ZN6v8impl12_GLOBAL__N_123FunctionCallbackWrapper6InvokeERKN2v820FunctionCallbackInfoINS2_5ValueEEE
              21: 0xd396ae - _ZN2v88internal12_GLOBAL__N_119HandleApiCallHelperILb0EEENS0_11MaybeHandleINS0_6ObjectEEEPNS0_7IsolateENS0_6HandleINS0_10HeapObjectEEESA_NS8_INS0_20FunctionTemplateInfoEEENS8_IS4_EENS0_16BuiltinArgumentsE
              22: 0xd3aacf - _ZN2v88internal21Builtin_HandleApiCallEiPmPNS0_7IsolateE
              23: 0x15d5519 - Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit
              /home/chris/functionless/new-project/node_modules/@swc/core/index.js:241
              return bindings.transformSync(isModule ? JSON.stringify(src) : src, isModule, toBuffer(newOptions));
              ^
              Error: failed to handle: failed to invoke plugin: failed to invoke plugin on 'Some("/home/chris/functionless/new-project/src/app.ts")'
              Caused by:
              0: failed to invoke `@functionless/ast-reflection` as js transform plugin at node_modules/@functionless/ast-reflection/ast_reflection.wasm
              1: RuntimeError: unreachable
              at __rust_start_panic (<module>[1581]:0x1470e8)
              at rust_panic (<module>[1574]:0x146e2d)
              at std::panicking::rust_panic_with_hook::h34503c79e5f975a0 (<module>[1573]:0x146daa)
              at std::panicking::begin_panic_handler::{{closure}}::h12a46dd1ec9ad9ef (<module>[1560]:0x146010)
              at std::sys_common::backtrace::__rust_end_short_backtrace::hbfd28f296b351783 (<module>[1559]:0x145f4f)
              at rust_begin_unwind (<module>[1568]:0x1466fa)
              at core::panicking::panic_fmt::h7092b9385b17ba68 (<module>[1666]:0x14d0d1)
              at core::result::unwrap_failed::hcf4dc3db6a31deee (<module>[1705]:0x14eb63)
              at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2f51fdec64c09b49 (<module>[951]:0xfdb43)
              at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2e8a8069be0c9f2f (<module>[399]:0x62b98)
              at swc_common::plugin::serialized::PluginSerializedBytes::deserialize::hf5e85413ebd1458b (<module>[96]:0x1995e)
              at swc_common::plugin::serialized::deserialize_from_ptr::h5296ff6c7163ba5e (<module>[95]:0x196ef)
              at __transform_plugin_process_impl (<module>[525]:0x86526)
              at __transform_plugin_process_impl.command_export (<module>[1766]:0x152883)
              2: unreachable
              at Compiler.transformSync (/home/chris/functionless/new-project/node_modules/@swc/core/index.js:241:29)
              at Object.transformSync (/home/chris/functionless/new-project/node_modules/@swc/core/index.js:348:21)
              at compile (/home/chris/functionless/new-project/node_modules/@swc/register/lib/node.js:76:22)
              at compileHook (/home/chris/functionless/new-project/node_modules/@swc/register/lib/node.js:91:16)
              at Module._compile (/home/chris/functionless/new-project/node_modules/pirates/lib/index.js:130:29)
              at Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
              at Object.newLoader [as .ts] (/home/chris/functionless/new-project/node_modules/pirates/lib/index.js:141:7)
              at Module.load (node:internal/modules/cjs/loader:1004:32)
              at Function.Module._load (node:internal/modules/cjs/loader:839:12)
              at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
              code: 'GenericFailure'
              }
              

              Attached package-lock.json from npm, and pnpm-local.yaml from pnpm for comparison
              package-lock.json.txt
              pnpm-lock.yaml.txt

              output of pnpm ls --depth 1:

              @aws-cdk/aws-appsync-alpha 2.43.1-alpha.0
              ├── aws-cdk-lib 2.43.1 peer
              └── constructs 10.1.116 peer
              @functionless/ast-reflection 0.3.2
              └── @swc/core 1.3.3 peer
              @functionless/language-service 0.0.4
              └── functionless 0.23.6 peer
              @types/jest 29.1.0
              ├── expect 29.1.0
              └── pretty-format 29.1.0
              @types/node 18.7.23
              aws-cdk 2.43.1
              └── fsevents 2.3.2
              aws-cdk-lib 2.43.1
              └── constructs 10.1.116 peer
              aws-sdk 2.1225.0
              ├── buffer 4.9.2
              ├── events 1.1.1
              ├── ieee754 1.1.13
              ├── jmespath 0.16.0
              ├── querystring 0.2.0
              ├── sax 1.2.1
              ├── url 0.10.3
              ├── util 0.12.4
              ├── uuid 8.0.0
              └── xml2js 0.4.19
              constructs 10.1.116
              esbuild 0.15.9
              ├── @esbuild/android-arm 0.15.9
              ├── @esbuild/linux-loong64 0.15.9
              ├── esbuild-android-64 0.15.9
              ├── esbuild-android-arm64 0.15.9
              ├── esbuild-darwin-64 0.15.9
              ├── esbuild-darwin-arm64 0.15.9
              ├── esbuild-freebsd-64 0.15.9
              ├── esbuild-freebsd-arm64 0.15.9
              ├── esbuild-linux-32 0.15.9
              ├── esbuild-linux-64 0.15.9
              ├── esbuild-linux-arm 0.15.9
              ├── esbuild-linux-arm64 0.15.9
              ├── esbuild-linux-mips64le 0.15.9
              ├── esbuild-linux-ppc64le 0.15.9
              ├── esbuild-linux-riscv64 0.15.9
              ├── esbuild-linux-s390x 0.15.9
              ├── esbuild-netbsd-64 0.15.9
              ├── esbuild-openbsd-64 0.15.9
              ├── esbuild-sunos-64 0.15.9
              ├── esbuild-windows-32 0.15.9
              ├── esbuild-windows-64 0.15.9
              └── esbuild-windows-arm64 0.15.9
              functionless 0.23.6
              ├── @aws-cdk/aws-appsync-alpha 2.43.1-alpha.0 peer
              ├── @functionless/ast-reflection 0.3.2
              ├── @functionless/nodejs-closure-serializer 0.1.2
              ├── @swc/cli 0.1.57
              ├── @swc/core 1.2.245
              ├── @swc/register 0.1.10
              ├── @types/aws-lambda 8.10.106
              ├── aws-cdk-lib 2.43.1 peer
              ├── aws-sdk 2.1225.0 peer
              ├── constructs 10.1.116 peer
              ├── esbuild 0.15.9 peer
              ├── fs-extra 10.1.0
              ├── minimatch 5.1.0
              ├── source-map 0.7.4
              ├── typesafe-dynamodb 0.2.3 peer
              └── typescript 4.8.4 peer
              jest 29.1.1
              ├── @jest/core 29.1.1
              ├── @jest/types 29.1.0
              ├── import-local 3.1.0
              └── jest-cli 29.1.1
              typesafe-dynamodb 0.2.3
              ├── @aws-sdk/client-dynamodb 3.180.0
              ├── @aws-sdk/lib-dynamodb 3.180.0
              ├── @aws-sdk/smithy-client 3.180.0
              ├── @aws-sdk/types 3.178.0
              ├── @aws-sdk/util-dynamodb 3.180.0
              ├── @types/aws-lambda 8.10.106
              └── aws-sdk 2.1225.0
              typescript 4.8.4
              

              Output of npm ls --depth 1:

              new-project@0.1.0 /home/chris/functionless/new-project
              ├─┬ @aws-cdk/aws-appsync-alpha@2.43.1-alpha.0
              │ ├── aws-cdk-lib@2.44.0 deduped
              │ └── constructs@10.1.116 deduped
              ├─┬ @functionless/ast-reflection@0.3.2
              │ └── @swc/core@1.3.3
              ├─┬ @functionless/language-service@0.0.4
              │ └── functionless@0.23.6 deduped invalid: "^0.6.20" from node_modules/@functionless/language-service
              ├─┬ @types/jest@29.1.0
              │ ├── expect@29.1.0
              │ └── pretty-format@29.1.0
              ├── @types/node@18.7.23
              ├─┬ aws-cdk-lib@2.44.0
              │ ├── @balena/dockerignore@1.0.2
              │ ├── case@1.6.3
              │ ├── constructs@10.1.116 deduped
              │ ├── fs-extra@9.1.0
              │ ├── ignore@5.2.0
              │ ├── jsonschema@1.4.1
              │ ├── minimatch@3.1.2
              │ ├── punycode@2.1.1
              │ ├── semver@7.3.7
              │ └── yaml@1.10.2
              ├─┬ aws-cdk@2.44.0
              │ └── UNMET OPTIONAL DEPENDENCY fsevents@2.3.2
              ├─┬ aws-sdk@2.1225.0
              │ ├── buffer@4.9.2
              │ ├── events@1.1.1
              │ ├── ieee754@1.1.13
              │ ├── jmespath@0.16.0
              │ ├── querystring@0.2.0
              │ ├── sax@1.2.1
              │ ├── url@0.10.3
              │ ├── util@0.12.4
              │ ├── uuid@8.0.0
              │ └── xml2js@0.4.19
              ├── constructs@10.1.116
              ├─┬ esbuild@0.15.10
              │ ├── UNMET OPTIONAL DEPENDENCY @esbuild/android-arm@0.15.10
              │ ├── UNMET OPTIONAL DEPENDENCY @esbuild/linux-loong64@0.15.10
              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-android-64@0.15.10
              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-android-arm64@0.15.10
              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-darwin-64@0.15.10
              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-darwin-arm64@0.15.10
              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-freebsd-64@0.15.10
              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-freebsd-arm64@0.15.10
              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-32@0.15.10
              │ ├── esbuild-linux-64@0.15.10
              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-arm@0.15.10
              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-arm64@0.15.10
              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-mips64le@0.15.10
              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-ppc64le@0.15.10
              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-riscv64@0.15.10
              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-s390x@0.15.10
              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-netbsd-64@0.15.10
              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-openbsd-64@0.15.10
              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-sunos-64@0.15.10
              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-windows-32@0.15.10
              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-windows-64@0.15.10
              │ └── UNMET OPTIONAL DEPENDENCY esbuild-windows-arm64@0.15.10
              ├─┬ functionless@0.23.6 invalid: "^0.6.20" from node_modules/@functionless/language-service
              │ ├── @aws-cdk/aws-appsync-alpha@2.43.1-alpha.0 deduped
              │ ├── @functionless/ast-reflection@0.3.2 deduped
              │ ├── @functionless/nodejs-closure-serializer@0.1.2
              │ ├── @swc/cli@0.1.57
              │ ├── @swc/core@1.2.245
              │ ├── @swc/register@0.1.10
              │ ├── @types/aws-lambda@8.10.106
              │ ├── aws-cdk-lib@2.44.0 deduped
              │ ├── aws-sdk@2.1225.0 deduped
              │ ├── constructs@10.1.116 deduped
              │ ├── esbuild@0.15.10 deduped
              │ ├── fs-extra@10.1.0
              │ ├── minimatch@5.1.0
              │ ├── source-map@0.7.4
              │ ├── typesafe-dynamodb@0.2.3 deduped invalid: "^0.1.5" from node_modules/functionless
              │ └── typescript@4.8.4 deduped
              ├─┬ jest@29.1.1
              │ ├── @jest/core@29.1.1
              │ ├── @jest/types@29.1.0
              │ ├── import-local@3.1.0
              │ ├── jest-cli@29.1.1
              │ └── UNMET OPTIONAL DEPENDENCY node-notifier@^8.0.1 || ^9.0.0 || ^10.0.0
              ├─┬ typesafe-dynamodb@0.2.3 invalid: "^0.1.5" from node_modules/functionless
              │ ├── @aws-sdk/client-dynamodb@3.180.0
              │ ├── @aws-sdk/lib-dynamodb@3.180.0
              │ ├── @aws-sdk/smithy-client@3.180.0
              │ ├── @aws-sdk/types@3.178.0
              │ ├── @aws-sdk/util-dynamodb@3.180.0
              │ ├── @types/aws-lambda@8.10.106 deduped
              │ └── aws-sdk@2.1225.0 deduped
              └── typescript@4.8.4
              

              Metadata

              Metadata

              Assignees

              No one assigned

                Labels

                No labels
                No labels

                Projects

                No projects

                  Milestone

                  No milestone

                  Relationships

                  None yet

                  Development

                  No branches or pull requests

                  Issue actions

                  , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
                  Skip to content
                  This repository was archived by the owner on Jun 11, 2026. It is now read-only.
                  This repository was archived by the owner on Jun 11, 2026. It is now read-only.

                  create-functionless-app: Created app cannot synth when using npm #528

                  Description

                  @cfraz89

                  Synth fails when project is created/deps installed in npm, though not through yarn or pnpm
                  npm cdk synth results in:

                  
                  thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: LayoutError', /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/rkyv-0.7.37/src/impls/core/mod.rs:265:67
                  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
                  thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/home/chris/functionless/new-project/src/app.ts")'
                  Caused by:
                  0: failed to invoke `@functionless/ast-reflection` as js transform plugin at node_modules/@functionless/ast-reflection/ast_reflection.wasm
                  1: RuntimeError: unreachable
                  at __rust_start_panic (<module>[1581]:0x1470e8)
                  at rust_panic (<module>[1574]:0x146e2d)
                  at std::panicking::rust_panic_with_hook::h34503c79e5f975a0 (<module>[1573]:0x146daa)
                  at std::panicking::begin_panic_handler::{{closure}}::h12a46dd1ec9ad9ef (<module>[1560]:0x146010)
                  at std::sys_common::backtrace::__rust_end_short_backtrace::hbfd28f296b351783 (<module>[1559]:0x145f4f)
                  at rust_begin_unwind (<module>[1568]:0x1466fa)
                  at core::panicking::panic_fmt::h7092b9385b17ba68 (<module>[1666]:0x14d0d1)
                  at core::result::unwrap_failed::hcf4dc3db6a31deee (<module>[1705]:0x14eb63)
                  at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2f51fdec64c09b49 (<module>[951]:0xfdb43)
                  at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2e8a8069be0c9f2f (<module>[399]:0x62b98)
                  at swc_common::plugin::serialized::PluginSerializedBytes::deserialize::hf5e85413ebd1458b (<module>[96]:0x1995e)
                  at swc_common::plugin::serialized::deserialize_from_ptr::h5296ff6c7163ba5e (<module>[95]:0x196ef)
                  at __transform_plugin_process_impl (<module>[525]:0x86526)
                  at __transform_plugin_process_impl.command_export (<module>[1766]:0x152883)
                  2: unreachable', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.228.0/src/plugin.rs:228:14
                  stack backtrace:
                  0: 0x7f7e0225b19d - <unknown>
                  1: 0x7f7e0228334c - <unknown>
                  2: 0x7f7e02256a11 - <unknown>
                  3: 0x7f7e0225cac5 - <unknown>
                  4: 0x7f7e0225c7e6 - <unknown>
                  5: 0x7f7e0225d056 - <unknown>
                  6: 0x7f7e0225cf47 - <unknown>
                  7: 0x7f7e0225b654 - <unknown>
                  8: 0x7f7e0225cc79 - <unknown>
                  9: 0x7f7e00602233 - <unknown>
                  10: 0x7f7e00602323 - <unknown>
                  11: 0x7f7e00dd483e - <unknown>
                  12: 0x7f7e00ee26ab - <unknown>
                  13: 0x7f7e00de1ebd - <unknown>
                  14: 0x7f7e00ddb538 - <unknown>
                  15: 0x7f7e008943dc - <unknown>
                  16: 0x7f7e00896375 - <unknown>
                  17: 0x7f7e007b546f - <unknown>
                  18: 0x7f7e00888a01 - <unknown>
                  19: 0x7f7e008005de - <unknown>
                  20: 0xaaf64d - _ZN6v8impl12_GLOBAL__N_123FunctionCallbackWrapper6InvokeERKN2v820FunctionCallbackInfoINS2_5ValueEEE
                  21: 0xd396ae - _ZN2v88internal12_GLOBAL__N_119HandleApiCallHelperILb0EEENS0_11MaybeHandleINS0_6ObjectEEEPNS0_7IsolateENS0_6HandleINS0_10HeapObjectEEESA_NS8_INS0_20FunctionTemplateInfoEEENS8_IS4_EENS0_16BuiltinArgumentsE
                  22: 0xd3aacf - _ZN2v88internal21Builtin_HandleApiCallEiPmPNS0_7IsolateE
                  23: 0x15d5519 - Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit
                  /home/chris/functionless/new-project/node_modules/@swc/core/index.js:241
                  return bindings.transformSync(isModule ? JSON.stringify(src) : src, isModule, toBuffer(newOptions));
                  ^
                  Error: failed to handle: failed to invoke plugin: failed to invoke plugin on 'Some("/home/chris/functionless/new-project/src/app.ts")'
                  Caused by:
                  0: failed to invoke `@functionless/ast-reflection` as js transform plugin at node_modules/@functionless/ast-reflection/ast_reflection.wasm
                  1: RuntimeError: unreachable
                  at __rust_start_panic (<module>[1581]:0x1470e8)
                  at rust_panic (<module>[1574]:0x146e2d)
                  at std::panicking::rust_panic_with_hook::h34503c79e5f975a0 (<module>[1573]:0x146daa)
                  at std::panicking::begin_panic_handler::{{closure}}::h12a46dd1ec9ad9ef (<module>[1560]:0x146010)
                  at std::sys_common::backtrace::__rust_end_short_backtrace::hbfd28f296b351783 (<module>[1559]:0x145f4f)
                  at rust_begin_unwind (<module>[1568]:0x1466fa)
                  at core::panicking::panic_fmt::h7092b9385b17ba68 (<module>[1666]:0x14d0d1)
                  at core::result::unwrap_failed::hcf4dc3db6a31deee (<module>[1705]:0x14eb63)
                  at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2f51fdec64c09b49 (<module>[951]:0xfdb43)
                  at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2e8a8069be0c9f2f (<module>[399]:0x62b98)
                  at swc_common::plugin::serialized::PluginSerializedBytes::deserialize::hf5e85413ebd1458b (<module>[96]:0x1995e)
                  at swc_common::plugin::serialized::deserialize_from_ptr::h5296ff6c7163ba5e (<module>[95]:0x196ef)
                  at __transform_plugin_process_impl (<module>[525]:0x86526)
                  at __transform_plugin_process_impl.command_export (<module>[1766]:0x152883)
                  2: unreachable
                  at Compiler.transformSync (/home/chris/functionless/new-project/node_modules/@swc/core/index.js:241:29)
                  at Object.transformSync (/home/chris/functionless/new-project/node_modules/@swc/core/index.js:348:21)
                  at compile (/home/chris/functionless/new-project/node_modules/@swc/register/lib/node.js:76:22)
                  at compileHook (/home/chris/functionless/new-project/node_modules/@swc/register/lib/node.js:91:16)
                  at Module._compile (/home/chris/functionless/new-project/node_modules/pirates/lib/index.js:130:29)
                  at Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
                  at Object.newLoader [as .ts] (/home/chris/functionless/new-project/node_modules/pirates/lib/index.js:141:7)
                  at Module.load (node:internal/modules/cjs/loader:1004:32)
                  at Function.Module._load (node:internal/modules/cjs/loader:839:12)
                  at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
                  code: 'GenericFailure'
                  }
                  

                  Attached package-lock.json from npm, and pnpm-local.yaml from pnpm for comparison
                  package-lock.json.txt
                  pnpm-lock.yaml.txt

                  output of pnpm ls --depth 1:

                  @aws-cdk/aws-appsync-alpha 2.43.1-alpha.0
                  ├── aws-cdk-lib 2.43.1 peer
                  └── constructs 10.1.116 peer
                  @functionless/ast-reflection 0.3.2
                  └── @swc/core 1.3.3 peer
                  @functionless/language-service 0.0.4
                  └── functionless 0.23.6 peer
                  @types/jest 29.1.0
                  ├── expect 29.1.0
                  └── pretty-format 29.1.0
                  @types/node 18.7.23
                  aws-cdk 2.43.1
                  └── fsevents 2.3.2
                  aws-cdk-lib 2.43.1
                  └── constructs 10.1.116 peer
                  aws-sdk 2.1225.0
                  ├── buffer 4.9.2
                  ├── events 1.1.1
                  ├── ieee754 1.1.13
                  ├── jmespath 0.16.0
                  ├── querystring 0.2.0
                  ├── sax 1.2.1
                  ├── url 0.10.3
                  ├── util 0.12.4
                  ├── uuid 8.0.0
                  └── xml2js 0.4.19
                  constructs 10.1.116
                  esbuild 0.15.9
                  ├── @esbuild/android-arm 0.15.9
                  ├── @esbuild/linux-loong64 0.15.9
                  ├── esbuild-android-64 0.15.9
                  ├── esbuild-android-arm64 0.15.9
                  ├── esbuild-darwin-64 0.15.9
                  ├── esbuild-darwin-arm64 0.15.9
                  ├── esbuild-freebsd-64 0.15.9
                  ├── esbuild-freebsd-arm64 0.15.9
                  ├── esbuild-linux-32 0.15.9
                  ├── esbuild-linux-64 0.15.9
                  ├── esbuild-linux-arm 0.15.9
                  ├── esbuild-linux-arm64 0.15.9
                  ├── esbuild-linux-mips64le 0.15.9
                  ├── esbuild-linux-ppc64le 0.15.9
                  ├── esbuild-linux-riscv64 0.15.9
                  ├── esbuild-linux-s390x 0.15.9
                  ├── esbuild-netbsd-64 0.15.9
                  ├── esbuild-openbsd-64 0.15.9
                  ├── esbuild-sunos-64 0.15.9
                  ├── esbuild-windows-32 0.15.9
                  ├── esbuild-windows-64 0.15.9
                  └── esbuild-windows-arm64 0.15.9
                  functionless 0.23.6
                  ├── @aws-cdk/aws-appsync-alpha 2.43.1-alpha.0 peer
                  ├── @functionless/ast-reflection 0.3.2
                  ├── @functionless/nodejs-closure-serializer 0.1.2
                  ├── @swc/cli 0.1.57
                  ├── @swc/core 1.2.245
                  ├── @swc/register 0.1.10
                  ├── @types/aws-lambda 8.10.106
                  ├── aws-cdk-lib 2.43.1 peer
                  ├── aws-sdk 2.1225.0 peer
                  ├── constructs 10.1.116 peer
                  ├── esbuild 0.15.9 peer
                  ├── fs-extra 10.1.0
                  ├── minimatch 5.1.0
                  ├── source-map 0.7.4
                  ├── typesafe-dynamodb 0.2.3 peer
                  └── typescript 4.8.4 peer
                  jest 29.1.1
                  ├── @jest/core 29.1.1
                  ├── @jest/types 29.1.0
                  ├── import-local 3.1.0
                  └── jest-cli 29.1.1
                  typesafe-dynamodb 0.2.3
                  ├── @aws-sdk/client-dynamodb 3.180.0
                  ├── @aws-sdk/lib-dynamodb 3.180.0
                  ├── @aws-sdk/smithy-client 3.180.0
                  ├── @aws-sdk/types 3.178.0
                  ├── @aws-sdk/util-dynamodb 3.180.0
                  ├── @types/aws-lambda 8.10.106
                  └── aws-sdk 2.1225.0
                  typescript 4.8.4
                  

                  Output of npm ls --depth 1:

                  new-project@0.1.0 /home/chris/functionless/new-project
                  ├─┬ @aws-cdk/aws-appsync-alpha@2.43.1-alpha.0
                  │ ├── aws-cdk-lib@2.44.0 deduped
                  │ └── constructs@10.1.116 deduped
                  ├─┬ @functionless/ast-reflection@0.3.2
                  │ └── @swc/core@1.3.3
                  ├─┬ @functionless/language-service@0.0.4
                  │ └── functionless@0.23.6 deduped invalid: "^0.6.20" from node_modules/@functionless/language-service
                  ├─┬ @types/jest@29.1.0
                  │ ├── expect@29.1.0
                  │ └── pretty-format@29.1.0
                  ├── @types/node@18.7.23
                  ├─┬ aws-cdk-lib@2.44.0
                  │ ├── @balena/dockerignore@1.0.2
                  │ ├── case@1.6.3
                  │ ├── constructs@10.1.116 deduped
                  │ ├── fs-extra@9.1.0
                  │ ├── ignore@5.2.0
                  │ ├── jsonschema@1.4.1
                  │ ├── minimatch@3.1.2
                  │ ├── punycode@2.1.1
                  │ ├── semver@7.3.7
                  │ └── yaml@1.10.2
                  ├─┬ aws-cdk@2.44.0
                  │ └── UNMET OPTIONAL DEPENDENCY fsevents@2.3.2
                  ├─┬ aws-sdk@2.1225.0
                  │ ├── buffer@4.9.2
                  │ ├── events@1.1.1
                  │ ├── ieee754@1.1.13
                  │ ├── jmespath@0.16.0
                  │ ├── querystring@0.2.0
                  │ ├── sax@1.2.1
                  │ ├── url@0.10.3
                  │ ├── util@0.12.4
                  │ ├── uuid@8.0.0
                  │ └── xml2js@0.4.19
                  ├── constructs@10.1.116
                  ├─┬ esbuild@0.15.10
                  │ ├── UNMET OPTIONAL DEPENDENCY @esbuild/android-arm@0.15.10
                  │ ├── UNMET OPTIONAL DEPENDENCY @esbuild/linux-loong64@0.15.10
                  │ ├── UNMET OPTIONAL DEPENDENCY esbuild-android-64@0.15.10
                  │ ├── UNMET OPTIONAL DEPENDENCY esbuild-android-arm64@0.15.10
                  │ ├── UNMET OPTIONAL DEPENDENCY esbuild-darwin-64@0.15.10
                  │ ├── UNMET OPTIONAL DEPENDENCY esbuild-darwin-arm64@0.15.10
                  │ ├── UNMET OPTIONAL DEPENDENCY esbuild-freebsd-64@0.15.10
                  │ ├── UNMET OPTIONAL DEPENDENCY esbuild-freebsd-arm64@0.15.10
                  │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-32@0.15.10
                  │ ├── esbuild-linux-64@0.15.10
                  │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-arm@0.15.10
                  │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-arm64@0.15.10
                  │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-mips64le@0.15.10
                  │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-ppc64le@0.15.10
                  │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-riscv64@0.15.10
                  │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-s390x@0.15.10
                  │ ├── UNMET OPTIONAL DEPENDENCY esbuild-netbsd-64@0.15.10
                  │ ├── UNMET OPTIONAL DEPENDENCY esbuild-openbsd-64@0.15.10
                  │ ├── UNMET OPTIONAL DEPENDENCY esbuild-sunos-64@0.15.10
                  │ ├── UNMET OPTIONAL DEPENDENCY esbuild-windows-32@0.15.10
                  │ ├── UNMET OPTIONAL DEPENDENCY esbuild-windows-64@0.15.10
                  │ └── UNMET OPTIONAL DEPENDENCY esbuild-windows-arm64@0.15.10
                  ├─┬ functionless@0.23.6 invalid: "^0.6.20" from node_modules/@functionless/language-service
                  │ ├── @aws-cdk/aws-appsync-alpha@2.43.1-alpha.0 deduped
                  │ ├── @functionless/ast-reflection@0.3.2 deduped
                  │ ├── @functionless/nodejs-closure-serializer@0.1.2
                  │ ├── @swc/cli@0.1.57
                  │ ├── @swc/core@1.2.245
                  │ ├── @swc/register@0.1.10
                  │ ├── @types/aws-lambda@8.10.106
                  │ ├── aws-cdk-lib@2.44.0 deduped
                  │ ├── aws-sdk@2.1225.0 deduped
                  │ ├── constructs@10.1.116 deduped
                  │ ├── esbuild@0.15.10 deduped
                  │ ├── fs-extra@10.1.0
                  │ ├── minimatch@5.1.0
                  │ ├── source-map@0.7.4
                  │ ├── typesafe-dynamodb@0.2.3 deduped invalid: "^0.1.5" from node_modules/functionless
                  │ └── typescript@4.8.4 deduped
                  ├─┬ jest@29.1.1
                  │ ├── @jest/core@29.1.1
                  │ ├── @jest/types@29.1.0
                  │ ├── import-local@3.1.0
                  │ ├── jest-cli@29.1.1
                  │ └── UNMET OPTIONAL DEPENDENCY node-notifier@^8.0.1 || ^9.0.0 || ^10.0.0
                  ├─┬ typesafe-dynamodb@0.2.3 invalid: "^0.1.5" from node_modules/functionless
                  │ ├── @aws-sdk/client-dynamodb@3.180.0
                  │ ├── @aws-sdk/lib-dynamodb@3.180.0
                  │ ├── @aws-sdk/smithy-client@3.180.0
                  │ ├── @aws-sdk/types@3.178.0
                  │ ├── @aws-sdk/util-dynamodb@3.180.0
                  │ ├── @types/aws-lambda@8.10.106 deduped
                  │ └── aws-sdk@2.1225.0 deduped
                  └── typescript@4.8.4
                  

                  Metadata

                  Metadata

                  Assignees

                  No one assigned

                    Labels

                    No labels
                    No labels

                    Projects

                    No projects

                      Milestone

                      No milestone

                      Relationships

                      None yet

                      Development

                      No branches or pull requests

                      Issue actions

                      , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
                      Skip to content
                      This repository was archived by the owner on Jun 11, 2026. It is now read-only.
                      This repository was archived by the owner on Jun 11, 2026. It is now read-only.

                      create-functionless-app: Created app cannot synth when using npm #528

                      Description

                      @cfraz89

                      Synth fails when project is created/deps installed in npm, though not through yarn or pnpm
                      npm cdk synth results in:

                      
                      thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: LayoutError', /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/rkyv-0.7.37/src/impls/core/mod.rs:265:67
                      note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
                      thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/home/chris/functionless/new-project/src/app.ts")'
                      Caused by:
                      0: failed to invoke `@functionless/ast-reflection` as js transform plugin at node_modules/@functionless/ast-reflection/ast_reflection.wasm
                      1: RuntimeError: unreachable
                      at __rust_start_panic (<module>[1581]:0x1470e8)
                      at rust_panic (<module>[1574]:0x146e2d)
                      at std::panicking::rust_panic_with_hook::h34503c79e5f975a0 (<module>[1573]:0x146daa)
                      at std::panicking::begin_panic_handler::{{closure}}::h12a46dd1ec9ad9ef (<module>[1560]:0x146010)
                      at std::sys_common::backtrace::__rust_end_short_backtrace::hbfd28f296b351783 (<module>[1559]:0x145f4f)
                      at rust_begin_unwind (<module>[1568]:0x1466fa)
                      at core::panicking::panic_fmt::h7092b9385b17ba68 (<module>[1666]:0x14d0d1)
                      at core::result::unwrap_failed::hcf4dc3db6a31deee (<module>[1705]:0x14eb63)
                      at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2f51fdec64c09b49 (<module>[951]:0xfdb43)
                      at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2e8a8069be0c9f2f (<module>[399]:0x62b98)
                      at swc_common::plugin::serialized::PluginSerializedBytes::deserialize::hf5e85413ebd1458b (<module>[96]:0x1995e)
                      at swc_common::plugin::serialized::deserialize_from_ptr::h5296ff6c7163ba5e (<module>[95]:0x196ef)
                      at __transform_plugin_process_impl (<module>[525]:0x86526)
                      at __transform_plugin_process_impl.command_export (<module>[1766]:0x152883)
                      2: unreachable', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.228.0/src/plugin.rs:228:14
                      stack backtrace:
                      0: 0x7f7e0225b19d - <unknown>
                      1: 0x7f7e0228334c - <unknown>
                      2: 0x7f7e02256a11 - <unknown>
                      3: 0x7f7e0225cac5 - <unknown>
                      4: 0x7f7e0225c7e6 - <unknown>
                      5: 0x7f7e0225d056 - <unknown>
                      6: 0x7f7e0225cf47 - <unknown>
                      7: 0x7f7e0225b654 - <unknown>
                      8: 0x7f7e0225cc79 - <unknown>
                      9: 0x7f7e00602233 - <unknown>
                      10: 0x7f7e00602323 - <unknown>
                      11: 0x7f7e00dd483e - <unknown>
                      12: 0x7f7e00ee26ab - <unknown>
                      13: 0x7f7e00de1ebd - <unknown>
                      14: 0x7f7e00ddb538 - <unknown>
                      15: 0x7f7e008943dc - <unknown>
                      16: 0x7f7e00896375 - <unknown>
                      17: 0x7f7e007b546f - <unknown>
                      18: 0x7f7e00888a01 - <unknown>
                      19: 0x7f7e008005de - <unknown>
                      20: 0xaaf64d - _ZN6v8impl12_GLOBAL__N_123FunctionCallbackWrapper6InvokeERKN2v820FunctionCallbackInfoINS2_5ValueEEE
                      21: 0xd396ae - _ZN2v88internal12_GLOBAL__N_119HandleApiCallHelperILb0EEENS0_11MaybeHandleINS0_6ObjectEEEPNS0_7IsolateENS0_6HandleINS0_10HeapObjectEEESA_NS8_INS0_20FunctionTemplateInfoEEENS8_IS4_EENS0_16BuiltinArgumentsE
                      22: 0xd3aacf - _ZN2v88internal21Builtin_HandleApiCallEiPmPNS0_7IsolateE
                      23: 0x15d5519 - Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit
                      /home/chris/functionless/new-project/node_modules/@swc/core/index.js:241
                      return bindings.transformSync(isModule ? JSON.stringify(src) : src, isModule, toBuffer(newOptions));
                      ^
                      Error: failed to handle: failed to invoke plugin: failed to invoke plugin on 'Some("/home/chris/functionless/new-project/src/app.ts")'
                      Caused by:
                      0: failed to invoke `@functionless/ast-reflection` as js transform plugin at node_modules/@functionless/ast-reflection/ast_reflection.wasm
                      1: RuntimeError: unreachable
                      at __rust_start_panic (<module>[1581]:0x1470e8)
                      at rust_panic (<module>[1574]:0x146e2d)
                      at std::panicking::rust_panic_with_hook::h34503c79e5f975a0 (<module>[1573]:0x146daa)
                      at std::panicking::begin_panic_handler::{{closure}}::h12a46dd1ec9ad9ef (<module>[1560]:0x146010)
                      at std::sys_common::backtrace::__rust_end_short_backtrace::hbfd28f296b351783 (<module>[1559]:0x145f4f)
                      at rust_begin_unwind (<module>[1568]:0x1466fa)
                      at core::panicking::panic_fmt::h7092b9385b17ba68 (<module>[1666]:0x14d0d1)
                      at core::result::unwrap_failed::hcf4dc3db6a31deee (<module>[1705]:0x14eb63)
                      at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2f51fdec64c09b49 (<module>[951]:0xfdb43)
                      at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2e8a8069be0c9f2f (<module>[399]:0x62b98)
                      at swc_common::plugin::serialized::PluginSerializedBytes::deserialize::hf5e85413ebd1458b (<module>[96]:0x1995e)
                      at swc_common::plugin::serialized::deserialize_from_ptr::h5296ff6c7163ba5e (<module>[95]:0x196ef)
                      at __transform_plugin_process_impl (<module>[525]:0x86526)
                      at __transform_plugin_process_impl.command_export (<module>[1766]:0x152883)
                      2: unreachable
                      at Compiler.transformSync (/home/chris/functionless/new-project/node_modules/@swc/core/index.js:241:29)
                      at Object.transformSync (/home/chris/functionless/new-project/node_modules/@swc/core/index.js:348:21)
                      at compile (/home/chris/functionless/new-project/node_modules/@swc/register/lib/node.js:76:22)
                      at compileHook (/home/chris/functionless/new-project/node_modules/@swc/register/lib/node.js:91:16)
                      at Module._compile (/home/chris/functionless/new-project/node_modules/pirates/lib/index.js:130:29)
                      at Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
                      at Object.newLoader [as .ts] (/home/chris/functionless/new-project/node_modules/pirates/lib/index.js:141:7)
                      at Module.load (node:internal/modules/cjs/loader:1004:32)
                      at Function.Module._load (node:internal/modules/cjs/loader:839:12)
                      at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
                      code: 'GenericFailure'
                      }
                      

                      Attached package-lock.json from npm, and pnpm-local.yaml from pnpm for comparison
                      package-lock.json.txt
                      pnpm-lock.yaml.txt

                      output of pnpm ls --depth 1:

                      @aws-cdk/aws-appsync-alpha 2.43.1-alpha.0
                      ├── aws-cdk-lib 2.43.1 peer
                      └── constructs 10.1.116 peer
                      @functionless/ast-reflection 0.3.2
                      └── @swc/core 1.3.3 peer
                      @functionless/language-service 0.0.4
                      └── functionless 0.23.6 peer
                      @types/jest 29.1.0
                      ├── expect 29.1.0
                      └── pretty-format 29.1.0
                      @types/node 18.7.23
                      aws-cdk 2.43.1
                      └── fsevents 2.3.2
                      aws-cdk-lib 2.43.1
                      └── constructs 10.1.116 peer
                      aws-sdk 2.1225.0
                      ├── buffer 4.9.2
                      ├── events 1.1.1
                      ├── ieee754 1.1.13
                      ├── jmespath 0.16.0
                      ├── querystring 0.2.0
                      ├── sax 1.2.1
                      ├── url 0.10.3
                      ├── util 0.12.4
                      ├── uuid 8.0.0
                      └── xml2js 0.4.19
                      constructs 10.1.116
                      esbuild 0.15.9
                      ├── @esbuild/android-arm 0.15.9
                      ├── @esbuild/linux-loong64 0.15.9
                      ├── esbuild-android-64 0.15.9
                      ├── esbuild-android-arm64 0.15.9
                      ├── esbuild-darwin-64 0.15.9
                      ├── esbuild-darwin-arm64 0.15.9
                      ├── esbuild-freebsd-64 0.15.9
                      ├── esbuild-freebsd-arm64 0.15.9
                      ├── esbuild-linux-32 0.15.9
                      ├── esbuild-linux-64 0.15.9
                      ├── esbuild-linux-arm 0.15.9
                      ├── esbuild-linux-arm64 0.15.9
                      ├── esbuild-linux-mips64le 0.15.9
                      ├── esbuild-linux-ppc64le 0.15.9
                      ├── esbuild-linux-riscv64 0.15.9
                      ├── esbuild-linux-s390x 0.15.9
                      ├── esbuild-netbsd-64 0.15.9
                      ├── esbuild-openbsd-64 0.15.9
                      ├── esbuild-sunos-64 0.15.9
                      ├── esbuild-windows-32 0.15.9
                      ├── esbuild-windows-64 0.15.9
                      └── esbuild-windows-arm64 0.15.9
                      functionless 0.23.6
                      ├── @aws-cdk/aws-appsync-alpha 2.43.1-alpha.0 peer
                      ├── @functionless/ast-reflection 0.3.2
                      ├── @functionless/nodejs-closure-serializer 0.1.2
                      ├── @swc/cli 0.1.57
                      ├── @swc/core 1.2.245
                      ├── @swc/register 0.1.10
                      ├── @types/aws-lambda 8.10.106
                      ├── aws-cdk-lib 2.43.1 peer
                      ├── aws-sdk 2.1225.0 peer
                      ├── constructs 10.1.116 peer
                      ├── esbuild 0.15.9 peer
                      ├── fs-extra 10.1.0
                      ├── minimatch 5.1.0
                      ├── source-map 0.7.4
                      ├── typesafe-dynamodb 0.2.3 peer
                      └── typescript 4.8.4 peer
                      jest 29.1.1
                      ├── @jest/core 29.1.1
                      ├── @jest/types 29.1.0
                      ├── import-local 3.1.0
                      └── jest-cli 29.1.1
                      typesafe-dynamodb 0.2.3
                      ├── @aws-sdk/client-dynamodb 3.180.0
                      ├── @aws-sdk/lib-dynamodb 3.180.0
                      ├── @aws-sdk/smithy-client 3.180.0
                      ├── @aws-sdk/types 3.178.0
                      ├── @aws-sdk/util-dynamodb 3.180.0
                      ├── @types/aws-lambda 8.10.106
                      └── aws-sdk 2.1225.0
                      typescript 4.8.4
                      

                      Output of npm ls --depth 1:

                      new-project@0.1.0 /home/chris/functionless/new-project
                      ├─┬ @aws-cdk/aws-appsync-alpha@2.43.1-alpha.0
                      │ ├── aws-cdk-lib@2.44.0 deduped
                      │ └── constructs@10.1.116 deduped
                      ├─┬ @functionless/ast-reflection@0.3.2
                      │ └── @swc/core@1.3.3
                      ├─┬ @functionless/language-service@0.0.4
                      │ └── functionless@0.23.6 deduped invalid: "^0.6.20" from node_modules/@functionless/language-service
                      ├─┬ @types/jest@29.1.0
                      │ ├── expect@29.1.0
                      │ └── pretty-format@29.1.0
                      ├── @types/node@18.7.23
                      ├─┬ aws-cdk-lib@2.44.0
                      │ ├── @balena/dockerignore@1.0.2
                      │ ├── case@1.6.3
                      │ ├── constructs@10.1.116 deduped
                      │ ├── fs-extra@9.1.0
                      │ ├── ignore@5.2.0
                      │ ├── jsonschema@1.4.1
                      │ ├── minimatch@3.1.2
                      │ ├── punycode@2.1.1
                      │ ├── semver@7.3.7
                      │ └── yaml@1.10.2
                      ├─┬ aws-cdk@2.44.0
                      │ └── UNMET OPTIONAL DEPENDENCY fsevents@2.3.2
                      ├─┬ aws-sdk@2.1225.0
                      │ ├── buffer@4.9.2
                      │ ├── events@1.1.1
                      │ ├── ieee754@1.1.13
                      │ ├── jmespath@0.16.0
                      │ ├── querystring@0.2.0
                      │ ├── sax@1.2.1
                      │ ├── url@0.10.3
                      │ ├── util@0.12.4
                      │ ├── uuid@8.0.0
                      │ └── xml2js@0.4.19
                      ├── constructs@10.1.116
                      ├─┬ esbuild@0.15.10
                      │ ├── UNMET OPTIONAL DEPENDENCY @esbuild/android-arm@0.15.10
                      │ ├── UNMET OPTIONAL DEPENDENCY @esbuild/linux-loong64@0.15.10
                      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-android-64@0.15.10
                      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-android-arm64@0.15.10
                      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-darwin-64@0.15.10
                      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-darwin-arm64@0.15.10
                      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-freebsd-64@0.15.10
                      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-freebsd-arm64@0.15.10
                      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-32@0.15.10
                      │ ├── esbuild-linux-64@0.15.10
                      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-arm@0.15.10
                      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-arm64@0.15.10
                      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-mips64le@0.15.10
                      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-ppc64le@0.15.10
                      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-riscv64@0.15.10
                      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-s390x@0.15.10
                      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-netbsd-64@0.15.10
                      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-openbsd-64@0.15.10
                      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-sunos-64@0.15.10
                      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-windows-32@0.15.10
                      │ ├── UNMET OPTIONAL DEPENDENCY esbuild-windows-64@0.15.10
                      │ └── UNMET OPTIONAL DEPENDENCY esbuild-windows-arm64@0.15.10
                      ├─┬ functionless@0.23.6 invalid: "^0.6.20" from node_modules/@functionless/language-service
                      │ ├── @aws-cdk/aws-appsync-alpha@2.43.1-alpha.0 deduped
                      │ ├── @functionless/ast-reflection@0.3.2 deduped
                      │ ├── @functionless/nodejs-closure-serializer@0.1.2
                      │ ├── @swc/cli@0.1.57
                      │ ├── @swc/core@1.2.245
                      │ ├── @swc/register@0.1.10
                      │ ├── @types/aws-lambda@8.10.106
                      │ ├── aws-cdk-lib@2.44.0 deduped
                      │ ├── aws-sdk@2.1225.0 deduped
                      │ ├── constructs@10.1.116 deduped
                      │ ├── esbuild@0.15.10 deduped
                      │ ├── fs-extra@10.1.0
                      │ ├── minimatch@5.1.0
                      │ ├── source-map@0.7.4
                      │ ├── typesafe-dynamodb@0.2.3 deduped invalid: "^0.1.5" from node_modules/functionless
                      │ └── typescript@4.8.4 deduped
                      ├─┬ jest@29.1.1
                      │ ├── @jest/core@29.1.1
                      │ ├── @jest/types@29.1.0
                      │ ├── import-local@3.1.0
                      │ ├── jest-cli@29.1.1
                      │ └── UNMET OPTIONAL DEPENDENCY node-notifier@^8.0.1 || ^9.0.0 || ^10.0.0
                      ├─┬ typesafe-dynamodb@0.2.3 invalid: "^0.1.5" from node_modules/functionless
                      │ ├── @aws-sdk/client-dynamodb@3.180.0
                      │ ├── @aws-sdk/lib-dynamodb@3.180.0
                      │ ├── @aws-sdk/smithy-client@3.180.0
                      │ ├── @aws-sdk/types@3.178.0
                      │ ├── @aws-sdk/util-dynamodb@3.180.0
                      │ ├── @types/aws-lambda@8.10.106 deduped
                      │ └── aws-sdk@2.1225.0 deduped
                      └── typescript@4.8.4
                      

                      Metadata

                      Metadata

                      Assignees

                      No one assigned

                        Labels

                        No labels
                        No labels

                        Projects

                        No projects

                          Milestone

                          No milestone

                          Relationships

                          None yet

                          Development

                          No branches or pull requests

                          Issue actions

                          , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
                          Skip to content
                          This repository was archived by the owner on Jun 11, 2026. It is now read-only.
                          This repository was archived by the owner on Jun 11, 2026. It is now read-only.

                          create-functionless-app: Created app cannot synth when using npm #528

                          Description

                          @cfraz89

                          Synth fails when project is created/deps installed in npm, though not through yarn or pnpm
                          npm cdk synth results in:

                          
                          thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: LayoutError', /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/rkyv-0.7.37/src/impls/core/mod.rs:265:67
                          note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
                          thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/home/chris/functionless/new-project/src/app.ts")'
                          Caused by:
                          0: failed to invoke `@functionless/ast-reflection` as js transform plugin at node_modules/@functionless/ast-reflection/ast_reflection.wasm
                          1: RuntimeError: unreachable
                          at __rust_start_panic (<module>[1581]:0x1470e8)
                          at rust_panic (<module>[1574]:0x146e2d)
                          at std::panicking::rust_panic_with_hook::h34503c79e5f975a0 (<module>[1573]:0x146daa)
                          at std::panicking::begin_panic_handler::{{closure}}::h12a46dd1ec9ad9ef (<module>[1560]:0x146010)
                          at std::sys_common::backtrace::__rust_end_short_backtrace::hbfd28f296b351783 (<module>[1559]:0x145f4f)
                          at rust_begin_unwind (<module>[1568]:0x1466fa)
                          at core::panicking::panic_fmt::h7092b9385b17ba68 (<module>[1666]:0x14d0d1)
                          at core::result::unwrap_failed::hcf4dc3db6a31deee (<module>[1705]:0x14eb63)
                          at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2f51fdec64c09b49 (<module>[951]:0xfdb43)
                          at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2e8a8069be0c9f2f (<module>[399]:0x62b98)
                          at swc_common::plugin::serialized::PluginSerializedBytes::deserialize::hf5e85413ebd1458b (<module>[96]:0x1995e)
                          at swc_common::plugin::serialized::deserialize_from_ptr::h5296ff6c7163ba5e (<module>[95]:0x196ef)
                          at __transform_plugin_process_impl (<module>[525]:0x86526)
                          at __transform_plugin_process_impl.command_export (<module>[1766]:0x152883)
                          2: unreachable', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.228.0/src/plugin.rs:228:14
                          stack backtrace:
                          0: 0x7f7e0225b19d - <unknown>
                          1: 0x7f7e0228334c - <unknown>
                          2: 0x7f7e02256a11 - <unknown>
                          3: 0x7f7e0225cac5 - <unknown>
                          4: 0x7f7e0225c7e6 - <unknown>
                          5: 0x7f7e0225d056 - <unknown>
                          6: 0x7f7e0225cf47 - <unknown>
                          7: 0x7f7e0225b654 - <unknown>
                          8: 0x7f7e0225cc79 - <unknown>
                          9: 0x7f7e00602233 - <unknown>
                          10: 0x7f7e00602323 - <unknown>
                          11: 0x7f7e00dd483e - <unknown>
                          12: 0x7f7e00ee26ab - <unknown>
                          13: 0x7f7e00de1ebd - <unknown>
                          14: 0x7f7e00ddb538 - <unknown>
                          15: 0x7f7e008943dc - <unknown>
                          16: 0x7f7e00896375 - <unknown>
                          17: 0x7f7e007b546f - <unknown>
                          18: 0x7f7e00888a01 - <unknown>
                          19: 0x7f7e008005de - <unknown>
                          20: 0xaaf64d - _ZN6v8impl12_GLOBAL__N_123FunctionCallbackWrapper6InvokeERKN2v820FunctionCallbackInfoINS2_5ValueEEE
                          21: 0xd396ae - _ZN2v88internal12_GLOBAL__N_119HandleApiCallHelperILb0EEENS0_11MaybeHandleINS0_6ObjectEEEPNS0_7IsolateENS0_6HandleINS0_10HeapObjectEEESA_NS8_INS0_20FunctionTemplateInfoEEENS8_IS4_EENS0_16BuiltinArgumentsE
                          22: 0xd3aacf - _ZN2v88internal21Builtin_HandleApiCallEiPmPNS0_7IsolateE
                          23: 0x15d5519 - Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit
                          /home/chris/functionless/new-project/node_modules/@swc/core/index.js:241
                          return bindings.transformSync(isModule ? JSON.stringify(src) : src, isModule, toBuffer(newOptions));
                          ^
                          Error: failed to handle: failed to invoke plugin: failed to invoke plugin on 'Some("/home/chris/functionless/new-project/src/app.ts")'
                          Caused by:
                          0: failed to invoke `@functionless/ast-reflection` as js transform plugin at node_modules/@functionless/ast-reflection/ast_reflection.wasm
                          1: RuntimeError: unreachable
                          at __rust_start_panic (<module>[1581]:0x1470e8)
                          at rust_panic (<module>[1574]:0x146e2d)
                          at std::panicking::rust_panic_with_hook::h34503c79e5f975a0 (<module>[1573]:0x146daa)
                          at std::panicking::begin_panic_handler::{{closure}}::h12a46dd1ec9ad9ef (<module>[1560]:0x146010)
                          at std::sys_common::backtrace::__rust_end_short_backtrace::hbfd28f296b351783 (<module>[1559]:0x145f4f)
                          at rust_begin_unwind (<module>[1568]:0x1466fa)
                          at core::panicking::panic_fmt::h7092b9385b17ba68 (<module>[1666]:0x14d0d1)
                          at core::result::unwrap_failed::hcf4dc3db6a31deee (<module>[1705]:0x14eb63)
                          at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2f51fdec64c09b49 (<module>[951]:0xfdb43)
                          at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2e8a8069be0c9f2f (<module>[399]:0x62b98)
                          at swc_common::plugin::serialized::PluginSerializedBytes::deserialize::hf5e85413ebd1458b (<module>[96]:0x1995e)
                          at swc_common::plugin::serialized::deserialize_from_ptr::h5296ff6c7163ba5e (<module>[95]:0x196ef)
                          at __transform_plugin_process_impl (<module>[525]:0x86526)
                          at __transform_plugin_process_impl.command_export (<module>[1766]:0x152883)
                          2: unreachable
                          at Compiler.transformSync (/home/chris/functionless/new-project/node_modules/@swc/core/index.js:241:29)
                          at Object.transformSync (/home/chris/functionless/new-project/node_modules/@swc/core/index.js:348:21)
                          at compile (/home/chris/functionless/new-project/node_modules/@swc/register/lib/node.js:76:22)
                          at compileHook (/home/chris/functionless/new-project/node_modules/@swc/register/lib/node.js:91:16)
                          at Module._compile (/home/chris/functionless/new-project/node_modules/pirates/lib/index.js:130:29)
                          at Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
                          at Object.newLoader [as .ts] (/home/chris/functionless/new-project/node_modules/pirates/lib/index.js:141:7)
                          at Module.load (node:internal/modules/cjs/loader:1004:32)
                          at Function.Module._load (node:internal/modules/cjs/loader:839:12)
                          at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
                          code: 'GenericFailure'
                          }
                          

                          Attached package-lock.json from npm, and pnpm-local.yaml from pnpm for comparison
                          package-lock.json.txt
                          pnpm-lock.yaml.txt

                          output of pnpm ls --depth 1:

                          @aws-cdk/aws-appsync-alpha 2.43.1-alpha.0
                          ├── aws-cdk-lib 2.43.1 peer
                          └── constructs 10.1.116 peer
                          @functionless/ast-reflection 0.3.2
                          └── @swc/core 1.3.3 peer
                          @functionless/language-service 0.0.4
                          └── functionless 0.23.6 peer
                          @types/jest 29.1.0
                          ├── expect 29.1.0
                          └── pretty-format 29.1.0
                          @types/node 18.7.23
                          aws-cdk 2.43.1
                          └── fsevents 2.3.2
                          aws-cdk-lib 2.43.1
                          └── constructs 10.1.116 peer
                          aws-sdk 2.1225.0
                          ├── buffer 4.9.2
                          ├── events 1.1.1
                          ├── ieee754 1.1.13
                          ├── jmespath 0.16.0
                          ├── querystring 0.2.0
                          ├── sax 1.2.1
                          ├── url 0.10.3
                          ├── util 0.12.4
                          ├── uuid 8.0.0
                          └── xml2js 0.4.19
                          constructs 10.1.116
                          esbuild 0.15.9
                          ├── @esbuild/android-arm 0.15.9
                          ├── @esbuild/linux-loong64 0.15.9
                          ├── esbuild-android-64 0.15.9
                          ├── esbuild-android-arm64 0.15.9
                          ├── esbuild-darwin-64 0.15.9
                          ├── esbuild-darwin-arm64 0.15.9
                          ├── esbuild-freebsd-64 0.15.9
                          ├── esbuild-freebsd-arm64 0.15.9
                          ├── esbuild-linux-32 0.15.9
                          ├── esbuild-linux-64 0.15.9
                          ├── esbuild-linux-arm 0.15.9
                          ├── esbuild-linux-arm64 0.15.9
                          ├── esbuild-linux-mips64le 0.15.9
                          ├── esbuild-linux-ppc64le 0.15.9
                          ├── esbuild-linux-riscv64 0.15.9
                          ├── esbuild-linux-s390x 0.15.9
                          ├── esbuild-netbsd-64 0.15.9
                          ├── esbuild-openbsd-64 0.15.9
                          ├── esbuild-sunos-64 0.15.9
                          ├── esbuild-windows-32 0.15.9
                          ├── esbuild-windows-64 0.15.9
                          └── esbuild-windows-arm64 0.15.9
                          functionless 0.23.6
                          ├── @aws-cdk/aws-appsync-alpha 2.43.1-alpha.0 peer
                          ├── @functionless/ast-reflection 0.3.2
                          ├── @functionless/nodejs-closure-serializer 0.1.2
                          ├── @swc/cli 0.1.57
                          ├── @swc/core 1.2.245
                          ├── @swc/register 0.1.10
                          ├── @types/aws-lambda 8.10.106
                          ├── aws-cdk-lib 2.43.1 peer
                          ├── aws-sdk 2.1225.0 peer
                          ├── constructs 10.1.116 peer
                          ├── esbuild 0.15.9 peer
                          ├── fs-extra 10.1.0
                          ├── minimatch 5.1.0
                          ├── source-map 0.7.4
                          ├── typesafe-dynamodb 0.2.3 peer
                          └── typescript 4.8.4 peer
                          jest 29.1.1
                          ├── @jest/core 29.1.1
                          ├── @jest/types 29.1.0
                          ├── import-local 3.1.0
                          └── jest-cli 29.1.1
                          typesafe-dynamodb 0.2.3
                          ├── @aws-sdk/client-dynamodb 3.180.0
                          ├── @aws-sdk/lib-dynamodb 3.180.0
                          ├── @aws-sdk/smithy-client 3.180.0
                          ├── @aws-sdk/types 3.178.0
                          ├── @aws-sdk/util-dynamodb 3.180.0
                          ├── @types/aws-lambda 8.10.106
                          └── aws-sdk 2.1225.0
                          typescript 4.8.4
                          

                          Output of npm ls --depth 1:

                          new-project@0.1.0 /home/chris/functionless/new-project
                          ├─┬ @aws-cdk/aws-appsync-alpha@2.43.1-alpha.0
                          │ ├── aws-cdk-lib@2.44.0 deduped
                          │ └── constructs@10.1.116 deduped
                          ├─┬ @functionless/ast-reflection@0.3.2
                          │ └── @swc/core@1.3.3
                          ├─┬ @functionless/language-service@0.0.4
                          │ └── functionless@0.23.6 deduped invalid: "^0.6.20" from node_modules/@functionless/language-service
                          ├─┬ @types/jest@29.1.0
                          │ ├── expect@29.1.0
                          │ └── pretty-format@29.1.0
                          ├── @types/node@18.7.23
                          ├─┬ aws-cdk-lib@2.44.0
                          │ ├── @balena/dockerignore@1.0.2
                          │ ├── case@1.6.3
                          │ ├── constructs@10.1.116 deduped
                          │ ├── fs-extra@9.1.0
                          │ ├── ignore@5.2.0
                          │ ├── jsonschema@1.4.1
                          │ ├── minimatch@3.1.2
                          │ ├── punycode@2.1.1
                          │ ├── semver@7.3.7
                          │ └── yaml@1.10.2
                          ├─┬ aws-cdk@2.44.0
                          │ └── UNMET OPTIONAL DEPENDENCY fsevents@2.3.2
                          ├─┬ aws-sdk@2.1225.0
                          │ ├── buffer@4.9.2
                          │ ├── events@1.1.1
                          │ ├── ieee754@1.1.13
                          │ ├── jmespath@0.16.0
                          │ ├── querystring@0.2.0
                          │ ├── sax@1.2.1
                          │ ├── url@0.10.3
                          │ ├── util@0.12.4
                          │ ├── uuid@8.0.0
                          │ └── xml2js@0.4.19
                          ├── constructs@10.1.116
                          ├─┬ esbuild@0.15.10
                          │ ├── UNMET OPTIONAL DEPENDENCY @esbuild/android-arm@0.15.10
                          │ ├── UNMET OPTIONAL DEPENDENCY @esbuild/linux-loong64@0.15.10
                          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-android-64@0.15.10
                          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-android-arm64@0.15.10
                          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-darwin-64@0.15.10
                          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-darwin-arm64@0.15.10
                          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-freebsd-64@0.15.10
                          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-freebsd-arm64@0.15.10
                          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-32@0.15.10
                          │ ├── esbuild-linux-64@0.15.10
                          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-arm@0.15.10
                          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-arm64@0.15.10
                          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-mips64le@0.15.10
                          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-ppc64le@0.15.10
                          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-riscv64@0.15.10
                          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-s390x@0.15.10
                          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-netbsd-64@0.15.10
                          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-openbsd-64@0.15.10
                          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-sunos-64@0.15.10
                          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-windows-32@0.15.10
                          │ ├── UNMET OPTIONAL DEPENDENCY esbuild-windows-64@0.15.10
                          │ └── UNMET OPTIONAL DEPENDENCY esbuild-windows-arm64@0.15.10
                          ├─┬ functionless@0.23.6 invalid: "^0.6.20" from node_modules/@functionless/language-service
                          │ ├── @aws-cdk/aws-appsync-alpha@2.43.1-alpha.0 deduped
                          │ ├── @functionless/ast-reflection@0.3.2 deduped
                          │ ├── @functionless/nodejs-closure-serializer@0.1.2
                          │ ├── @swc/cli@0.1.57
                          │ ├── @swc/core@1.2.245
                          │ ├── @swc/register@0.1.10
                          │ ├── @types/aws-lambda@8.10.106
                          │ ├── aws-cdk-lib@2.44.0 deduped
                          │ ├── aws-sdk@2.1225.0 deduped
                          │ ├── constructs@10.1.116 deduped
                          │ ├── esbuild@0.15.10 deduped
                          │ ├── fs-extra@10.1.0
                          │ ├── minimatch@5.1.0
                          │ ├── source-map@0.7.4
                          │ ├── typesafe-dynamodb@0.2.3 deduped invalid: "^0.1.5" from node_modules/functionless
                          │ └── typescript@4.8.4 deduped
                          ├─┬ jest@29.1.1
                          │ ├── @jest/core@29.1.1
                          │ ├── @jest/types@29.1.0
                          │ ├── import-local@3.1.0
                          │ ├── jest-cli@29.1.1
                          │ └── UNMET OPTIONAL DEPENDENCY node-notifier@^8.0.1 || ^9.0.0 || ^10.0.0
                          ├─┬ typesafe-dynamodb@0.2.3 invalid: "^0.1.5" from node_modules/functionless
                          │ ├── @aws-sdk/client-dynamodb@3.180.0
                          │ ├── @aws-sdk/lib-dynamodb@3.180.0
                          │ ├── @aws-sdk/smithy-client@3.180.0
                          │ ├── @aws-sdk/types@3.178.0
                          │ ├── @aws-sdk/util-dynamodb@3.180.0
                          │ ├── @types/aws-lambda@8.10.106 deduped
                          │ └── aws-sdk@2.1225.0 deduped
                          └── typescript@4.8.4
                          

                          Metadata

                          Metadata

                          Assignees

                          No one assigned

                            Labels

                            No labels
                            No labels

                            Projects

                            No projects

                              Milestone

                              No milestone

                              Relationships

                              None yet

                              Development

                              No branches or pull requests

                              Issue actions

                              , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
                              Skip to content
                              This repository was archived by the owner on Jun 11, 2026. It is now read-only.
                              This repository was archived by the owner on Jun 11, 2026. It is now read-only.

                              create-functionless-app: Created app cannot synth when using npm #528

                              Description

                              @cfraz89

                              Synth fails when project is created/deps installed in npm, though not through yarn or pnpm
                              npm cdk synth results in:

                              
                              thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: LayoutError', /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/rkyv-0.7.37/src/impls/core/mod.rs:265:67
                              note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
                              thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/home/chris/functionless/new-project/src/app.ts")'
                              Caused by:
                              0: failed to invoke `@functionless/ast-reflection` as js transform plugin at node_modules/@functionless/ast-reflection/ast_reflection.wasm
                              1: RuntimeError: unreachable
                              at __rust_start_panic (<module>[1581]:0x1470e8)
                              at rust_panic (<module>[1574]:0x146e2d)
                              at std::panicking::rust_panic_with_hook::h34503c79e5f975a0 (<module>[1573]:0x146daa)
                              at std::panicking::begin_panic_handler::{{closure}}::h12a46dd1ec9ad9ef (<module>[1560]:0x146010)
                              at std::sys_common::backtrace::__rust_end_short_backtrace::hbfd28f296b351783 (<module>[1559]:0x145f4f)
                              at rust_begin_unwind (<module>[1568]:0x1466fa)
                              at core::panicking::panic_fmt::h7092b9385b17ba68 (<module>[1666]:0x14d0d1)
                              at core::result::unwrap_failed::hcf4dc3db6a31deee (<module>[1705]:0x14eb63)
                              at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2f51fdec64c09b49 (<module>[951]:0xfdb43)
                              at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2e8a8069be0c9f2f (<module>[399]:0x62b98)
                              at swc_common::plugin::serialized::PluginSerializedBytes::deserialize::hf5e85413ebd1458b (<module>[96]:0x1995e)
                              at swc_common::plugin::serialized::deserialize_from_ptr::h5296ff6c7163ba5e (<module>[95]:0x196ef)
                              at __transform_plugin_process_impl (<module>[525]:0x86526)
                              at __transform_plugin_process_impl.command_export (<module>[1766]:0x152883)
                              2: unreachable', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.228.0/src/plugin.rs:228:14
                              stack backtrace:
                              0: 0x7f7e0225b19d - <unknown>
                              1: 0x7f7e0228334c - <unknown>
                              2: 0x7f7e02256a11 - <unknown>
                              3: 0x7f7e0225cac5 - <unknown>
                              4: 0x7f7e0225c7e6 - <unknown>
                              5: 0x7f7e0225d056 - <unknown>
                              6: 0x7f7e0225cf47 - <unknown>
                              7: 0x7f7e0225b654 - <unknown>
                              8: 0x7f7e0225cc79 - <unknown>
                              9: 0x7f7e00602233 - <unknown>
                              10: 0x7f7e00602323 - <unknown>
                              11: 0x7f7e00dd483e - <unknown>
                              12: 0x7f7e00ee26ab - <unknown>
                              13: 0x7f7e00de1ebd - <unknown>
                              14: 0x7f7e00ddb538 - <unknown>
                              15: 0x7f7e008943dc - <unknown>
                              16: 0x7f7e00896375 - <unknown>
                              17: 0x7f7e007b546f - <unknown>
                              18: 0x7f7e00888a01 - <unknown>
                              19: 0x7f7e008005de - <unknown>
                              20: 0xaaf64d - _ZN6v8impl12_GLOBAL__N_123FunctionCallbackWrapper6InvokeERKN2v820FunctionCallbackInfoINS2_5ValueEEE
                              21: 0xd396ae - _ZN2v88internal12_GLOBAL__N_119HandleApiCallHelperILb0EEENS0_11MaybeHandleINS0_6ObjectEEEPNS0_7IsolateENS0_6HandleINS0_10HeapObjectEEESA_NS8_INS0_20FunctionTemplateInfoEEENS8_IS4_EENS0_16BuiltinArgumentsE
                              22: 0xd3aacf - _ZN2v88internal21Builtin_HandleApiCallEiPmPNS0_7IsolateE
                              23: 0x15d5519 - Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit
                              /home/chris/functionless/new-project/node_modules/@swc/core/index.js:241
                              return bindings.transformSync(isModule ? JSON.stringify(src) : src, isModule, toBuffer(newOptions));
                              ^
                              Error: failed to handle: failed to invoke plugin: failed to invoke plugin on 'Some("/home/chris/functionless/new-project/src/app.ts")'
                              Caused by:
                              0: failed to invoke `@functionless/ast-reflection` as js transform plugin at node_modules/@functionless/ast-reflection/ast_reflection.wasm
                              1: RuntimeError: unreachable
                              at __rust_start_panic (<module>[1581]:0x1470e8)
                              at rust_panic (<module>[1574]:0x146e2d)
                              at std::panicking::rust_panic_with_hook::h34503c79e5f975a0 (<module>[1573]:0x146daa)
                              at std::panicking::begin_panic_handler::{{closure}}::h12a46dd1ec9ad9ef (<module>[1560]:0x146010)
                              at std::sys_common::backtrace::__rust_end_short_backtrace::hbfd28f296b351783 (<module>[1559]:0x145f4f)
                              at rust_begin_unwind (<module>[1568]:0x1466fa)
                              at core::panicking::panic_fmt::h7092b9385b17ba68 (<module>[1666]:0x14d0d1)
                              at core::result::unwrap_failed::hcf4dc3db6a31deee (<module>[1705]:0x14eb63)
                              at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2f51fdec64c09b49 (<module>[951]:0xfdb43)
                              at rkyv::impls::core::<impl rkyv::DeserializeUnsized<[U],D> for [T]>::deserialize_unsized::h2e8a8069be0c9f2f (<module>[399]:0x62b98)
                              at swc_common::plugin::serialized::PluginSerializedBytes::deserialize::hf5e85413ebd1458b (<module>[96]:0x1995e)
                              at swc_common::plugin::serialized::deserialize_from_ptr::h5296ff6c7163ba5e (<module>[95]:0x196ef)
                              at __transform_plugin_process_impl (<module>[525]:0x86526)
                              at __transform_plugin_process_impl.command_export (<module>[1766]:0x152883)
                              2: unreachable
                              at Compiler.transformSync (/home/chris/functionless/new-project/node_modules/@swc/core/index.js:241:29)
                              at Object.transformSync (/home/chris/functionless/new-project/node_modules/@swc/core/index.js:348:21)
                              at compile (/home/chris/functionless/new-project/node_modules/@swc/register/lib/node.js:76:22)
                              at compileHook (/home/chris/functionless/new-project/node_modules/@swc/register/lib/node.js:91:16)
                              at Module._compile (/home/chris/functionless/new-project/node_modules/pirates/lib/index.js:130:29)
                              at Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
                              at Object.newLoader [as .ts] (/home/chris/functionless/new-project/node_modules/pirates/lib/index.js:141:7)
                              at Module.load (node:internal/modules/cjs/loader:1004:32)
                              at Function.Module._load (node:internal/modules/cjs/loader:839:12)
                              at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
                              code: 'GenericFailure'
                              }
                              

                              Attached package-lock.json from npm, and pnpm-local.yaml from pnpm for comparison
                              package-lock.json.txt
                              pnpm-lock.yaml.txt

                              output of pnpm ls --depth 1:

                              @aws-cdk/aws-appsync-alpha 2.43.1-alpha.0
                              ├── aws-cdk-lib 2.43.1 peer
                              └── constructs 10.1.116 peer
                              @functionless/ast-reflection 0.3.2
                              └── @swc/core 1.3.3 peer
                              @functionless/language-service 0.0.4
                              └── functionless 0.23.6 peer
                              @types/jest 29.1.0
                              ├── expect 29.1.0
                              └── pretty-format 29.1.0
                              @types/node 18.7.23
                              aws-cdk 2.43.1
                              └── fsevents 2.3.2
                              aws-cdk-lib 2.43.1
                              └── constructs 10.1.116 peer
                              aws-sdk 2.1225.0
                              ├── buffer 4.9.2
                              ├── events 1.1.1
                              ├── ieee754 1.1.13
                              ├── jmespath 0.16.0
                              ├── querystring 0.2.0
                              ├── sax 1.2.1
                              ├── url 0.10.3
                              ├── util 0.12.4
                              ├── uuid 8.0.0
                              └── xml2js 0.4.19
                              constructs 10.1.116
                              esbuild 0.15.9
                              ├── @esbuild/android-arm 0.15.9
                              ├── @esbuild/linux-loong64 0.15.9
                              ├── esbuild-android-64 0.15.9
                              ├── esbuild-android-arm64 0.15.9
                              ├── esbuild-darwin-64 0.15.9
                              ├── esbuild-darwin-arm64 0.15.9
                              ├── esbuild-freebsd-64 0.15.9
                              ├── esbuild-freebsd-arm64 0.15.9
                              ├── esbuild-linux-32 0.15.9
                              ├── esbuild-linux-64 0.15.9
                              ├── esbuild-linux-arm 0.15.9
                              ├── esbuild-linux-arm64 0.15.9
                              ├── esbuild-linux-mips64le 0.15.9
                              ├── esbuild-linux-ppc64le 0.15.9
                              ├── esbuild-linux-riscv64 0.15.9
                              ├── esbuild-linux-s390x 0.15.9
                              ├── esbuild-netbsd-64 0.15.9
                              ├── esbuild-openbsd-64 0.15.9
                              ├── esbuild-sunos-64 0.15.9
                              ├── esbuild-windows-32 0.15.9
                              ├── esbuild-windows-64 0.15.9
                              └── esbuild-windows-arm64 0.15.9
                              functionless 0.23.6
                              ├── @aws-cdk/aws-appsync-alpha 2.43.1-alpha.0 peer
                              ├── @functionless/ast-reflection 0.3.2
                              ├── @functionless/nodejs-closure-serializer 0.1.2
                              ├── @swc/cli 0.1.57
                              ├── @swc/core 1.2.245
                              ├── @swc/register 0.1.10
                              ├── @types/aws-lambda 8.10.106
                              ├── aws-cdk-lib 2.43.1 peer
                              ├── aws-sdk 2.1225.0 peer
                              ├── constructs 10.1.116 peer
                              ├── esbuild 0.15.9 peer
                              ├── fs-extra 10.1.0
                              ├── minimatch 5.1.0
                              ├── source-map 0.7.4
                              ├── typesafe-dynamodb 0.2.3 peer
                              └── typescript 4.8.4 peer
                              jest 29.1.1
                              ├── @jest/core 29.1.1
                              ├── @jest/types 29.1.0
                              ├── import-local 3.1.0
                              └── jest-cli 29.1.1
                              typesafe-dynamodb 0.2.3
                              ├── @aws-sdk/client-dynamodb 3.180.0
                              ├── @aws-sdk/lib-dynamodb 3.180.0
                              ├── @aws-sdk/smithy-client 3.180.0
                              ├── @aws-sdk/types 3.178.0
                              ├── @aws-sdk/util-dynamodb 3.180.0
                              ├── @types/aws-lambda 8.10.106
                              └── aws-sdk 2.1225.0
                              typescript 4.8.4
                              

                              Output of npm ls --depth 1:

                              new-project@0.1.0 /home/chris/functionless/new-project
                              ├─┬ @aws-cdk/aws-appsync-alpha@2.43.1-alpha.0
                              │ ├── aws-cdk-lib@2.44.0 deduped
                              │ └── constructs@10.1.116 deduped
                              ├─┬ @functionless/ast-reflection@0.3.2
                              │ └── @swc/core@1.3.3
                              ├─┬ @functionless/language-service@0.0.4
                              │ └── functionless@0.23.6 deduped invalid: "^0.6.20" from node_modules/@functionless/language-service
                              ├─┬ @types/jest@29.1.0
                              │ ├── expect@29.1.0
                              │ └── pretty-format@29.1.0
                              ├── @types/node@18.7.23
                              ├─┬ aws-cdk-lib@2.44.0
                              │ ├── @balena/dockerignore@1.0.2
                              │ ├── case@1.6.3
                              │ ├── constructs@10.1.116 deduped
                              │ ├── fs-extra@9.1.0
                              │ ├── ignore@5.2.0
                              │ ├── jsonschema@1.4.1
                              │ ├── minimatch@3.1.2
                              │ ├── punycode@2.1.1
                              │ ├── semver@7.3.7
                              │ └── yaml@1.10.2
                              ├─┬ aws-cdk@2.44.0
                              │ └── UNMET OPTIONAL DEPENDENCY fsevents@2.3.2
                              ├─┬ aws-sdk@2.1225.0
                              │ ├── buffer@4.9.2
                              │ ├── events@1.1.1
                              │ ├── ieee754@1.1.13
                              │ ├── jmespath@0.16.0
                              │ ├── querystring@0.2.0
                              │ ├── sax@1.2.1
                              │ ├── url@0.10.3
                              │ ├── util@0.12.4
                              │ ├── uuid@8.0.0
                              │ └── xml2js@0.4.19
                              ├── constructs@10.1.116
                              ├─┬ esbuild@0.15.10
                              │ ├── UNMET OPTIONAL DEPENDENCY @esbuild/android-arm@0.15.10
                              │ ├── UNMET OPTIONAL DEPENDENCY @esbuild/linux-loong64@0.15.10
                              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-android-64@0.15.10
                              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-android-arm64@0.15.10
                              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-darwin-64@0.15.10
                              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-darwin-arm64@0.15.10
                              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-freebsd-64@0.15.10
                              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-freebsd-arm64@0.15.10
                              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-32@0.15.10
                              │ ├── esbuild-linux-64@0.15.10
                              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-arm@0.15.10
                              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-arm64@0.15.10
                              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-mips64le@0.15.10
                              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-ppc64le@0.15.10
                              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-riscv64@0.15.10
                              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-linux-s390x@0.15.10
                              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-netbsd-64@0.15.10
                              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-openbsd-64@0.15.10
                              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-sunos-64@0.15.10
                              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-windows-32@0.15.10
                              │ ├── UNMET OPTIONAL DEPENDENCY esbuild-windows-64@0.15.10
                              │ └── UNMET OPTIONAL DEPENDENCY esbuild-windows-arm64@0.15.10
                              ├─┬ functionless@0.23.6 invalid: "^0.6.20" from node_modules/@functionless/language-service
                              │ ├── @aws-cdk/aws-appsync-alpha@2.43.1-alpha.0 deduped
                              │ ├── @functionless/ast-reflection@0.3.2 deduped
                              │ ├── @functionless/nodejs-closure-serializer@0.1.2
                              │ ├── @swc/cli@0.1.57
                              │ ├── @swc/core@1.2.245
                              │ ├── @swc/register@0.1.10
                              │ ├── @types/aws-lambda@8.10.106
                              │ ├── aws-cdk-lib@2.44.0 deduped
                              │ ├── aws-sdk@2.1225.0 deduped
                              │ ├── constructs@10.1.116 deduped
                              │ ├── esbuild@0.15.10 deduped
                              │ ├── fs-extra@10.1.0
                              │ ├── minimatch@5.1.0
                              │ ├── source-map@0.7.4
                              │ ├── typesafe-dynamodb@0.2.3 deduped invalid: "^0.1.5" from node_modules/functionless
                              │ └── typescript@4.8.4 deduped
                              ├─┬ jest@29.1.1
                              │ ├── @jest/core@29.1.1
                              │ ├── @jest/types@29.1.0
                              │ ├── import-local@3.1.0
                              │ ├── jest-cli@29.1.1
                              │ └── UNMET OPTIONAL DEPENDENCY node-notifier@^8.0.1 || ^9.0.0 || ^10.0.0
                              ├─┬ typesafe-dynamodb@0.2.3 invalid: "^0.1.5" from node_modules/functionless
                              │ ├── @aws-sdk/client-dynamodb@3.180.0
                              │ ├── @aws-sdk/lib-dynamodb@3.180.0
                              │ ├── @aws-sdk/smithy-client@3.180.0
                              │ ├── @aws-sdk/types@3.178.0
                              │ ├── @aws-sdk/util-dynamodb@3.180.0
                              │ ├── @types/aws-lambda@8.10.106 deduped
                              │ └── aws-sdk@2.1225.0 deduped
                              └── typescript@4.8.4
                              

                              Metadata

                              Metadata

                              Assignees

                              No one assigned

                                Labels

                                No labels
                                No labels

                                Projects

                                No projects

                                  Milestone

                                  No milestone

                                  Relationships

                                  None yet

                                  Development

                                  No branches or pull requests

                                  Issue actions