Skip to content

Don't try to access properties of undefined diagnostic file object#311

Open
MennoTammens wants to merge 1 commit intoserverless:masterfrom
MennoTammens:patch-1
Open

Don't try to access properties of undefined diagnostic file object#311
MennoTammens wants to merge 1 commit intoserverless:masterfrom
MennoTammens:patch-1

Conversation

@MennoTammens
Copy link

@MennoTammens MennoTammens commented Oct 6, 2025

When compiling with node20.x or node22.x, I got this error:

{
  file: undefined,
  start: undefined,
  length: undefined,
  code: 2688,
  category: 1,
  messageText: {
    messageText: "Cannot find type definition file for 'glob'.",
    category: 1,
    code: 2688,
    next: [ [Object] ]
  },
  relatedInformation: undefined
}

Error:
TypeError: Cannot read properties of undefined (reading 'getLineAndCharacterOfPosition')
    at node_modules/serverless-plugin-typescript/dist/src/typescript.js:85:57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant