You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My esbuild doesnt resolve serialize-error node package.
➜ cognito-triggers source ~/.aws/lu && sam build && sam deploy --config-file samconfig.dev.toml
Building codeuri: .../cognito-triggers/lambdas runtime: nodejs18.x metadata: {'BuildMethod': 'esbuild', 'BuildProperties': {'Format': 'cjs', 'Minify': False, 'Target':
'es2022', 'EntryPoints': ['src/trigger-post-confirmation.ts']}} architecture: x86_64 functions: CognitoTriggerPostConfirmationFunction
Running NodejsNpmEsbuildBuilder:CopySource
Running NodejsNpmEsbuildBuilder:NpmInstall
Running NodejsNpmEsbuildBuilder:EsbuildBundle
Build Failed
Error: NodejsNpmEsbuildBuilder:EsbuildBundle - Esbuild Failed: ✘ [ERROR] Could not resolve "serialize-error"
src/trigger-post-confirmation.ts:2:31:
2 │ import { serializeError } from "serialize-error";
╵ ~~~~~~~~~~~~~~~~~
You can mark the path "serialize-error" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle.
1 error
Other package are working fine. Why is serialize-error different?
The text was updated successfully, but these errors were encountered:
My esbuild doesnt resolve serialize-error node package.
Other package are working fine. Why is serialize-error different?
The text was updated successfully, but these errors were encountered: