anyone know why this would happen in a CI/CD envir...
# help
s
anyone know why this would happen in a CI/CD environment during deployment?
Copy code
Type checking Lambda function source
lambda/graphql/models/Track.ts(1,23): error TS2307: Cannot find module '../types/media' or its corresponding type declarations.
lambda/graphql/models/Video.ts(1,23): error TS2307: Cannot find module '../types/media' or its corresponding type declarations.
in `Track.ts`:
Copy code
import { Media } from '../types/media';
and that file definitely exists (lambda/graphql/types/media.ts)
t
hm not immediately sure. Is it outside the
srcPath
?
s
no, it’s just one level up
srcPath
is
src
. so these files are in
src/lambda/graphql
so weird that it works fine locally, but not when deployed via GitHub Actions
t
Oh it works locally hm
s
it got through all the “Building Lambda function …” steps
t
I have a project that builds through GH actions so I know it's not some weird incompatibility
s
can I see your workflow config file?
do I need the
actions/setup-node@v2
step?
added this to my steps, right after the checkout:
Copy code
- uses: actions/setup-node@v2
        with:
          node-version: '14'
we’ll see if that does the trick
boo, same error. but this time in color 😄
that makes no sense
I feel like I have to spin up an Ubuntu container on my Mac to test this out
welp, that was weird. filename case issue in Mac vs Linux. https://stackoverflow.com/a/64359597/5228806
t
I think there's a tsconfig setting for this