Hey guys, got a weird one. Just spun up a new proj...
# help
b
Hey guys, got a weird one. Just spun up a new project and one of my lambdas is using an npm module that causes the type checking (on
npm start
) to error out. I'm trying to figure out how to get the type checking to ignore it but I'm at a loss right now. I've added node_modules to the
ignorePatterns
array in
.eslintrc.json
and to my
tsconfig.json
. Any ideas?
c
Does @types not have the type definitions for the module?
b
The module has it's own types, that's what's throwing errors 😞 I'm using
@aws-sdk/util-dynamo
which includes a references to a type
File
which it seems to be referencing from
node
- I've got
node
and
@types/node
as devDependencies and it still doesn't like it.
I've worked around this issue by including "dom" in my
tsconfig.json/lib
array.