I'm trying to create a Lambda function, but I'm getting subject error message when I try to run Sandbox or Deploy. My amplify/tsconfig looks like this:
"compilerOptions": { "target": "es2022", "module": "es2022", "moduleResolution": "bundler", "resolveJsonModule": true, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "strict": true, "skipLibCheck": true, "paths": { "$amplify/*": ["../.amplify/generated/*"], "@/*": ["./*"] } }
My root/tsconfig has this line:
"exclude": ["node_modules", "amplify", "amplify/**/*"]
The culprit is import { env } from '$amplify/env/myFunction';
It seems to me that the amplify files are not being generated when running sandbox or deploying. Is this something I have to trigger manually? Thanks!