Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • T ts-structure-parser
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Service Desk
    • Milestones
  • Jira
    • Jira
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Administrator
  • ts-structure-parser
  • Issues
  • #16
Closed
Open
Created Apr 06, 2021 by Administrator@rootOwner

Ошибка при парсинге ts файлов

Created by: alex-shul

(node:57070) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'text' of undefined at /Users/alex-shul/Desktop/projects/nlmk/frontend/apcs-web/node_modules/ts-file-parser/dist/src/tsStructureParser.js:206:84 at Array.forEach () at /Users/alex-shul/Desktop/projects/nlmk/frontend/apcs-web/node_modules/ts-file-parser/dist/src/tsStructureParser.js:200:34 at visit (/Users/alex-shul/Desktop/projects/nlmk/frontend/apcs-web/node_modules/ts-file-parser/dist/src/tsASTMatchers.js:143:18) at /Users/alex-shul/Desktop/projects/nlmk/frontend/apcs-web/node_modules/ts-file-parser/dist/src/tsASTMatchers.js:151:21 at visitNodes (/Users/alex-shul/Desktop/projects/nlmk/frontend/apcs-web/node_modules/ts-file-parser/node_modules/typescript/lib/typescript.js:13272:30) at Object.forEachChild (/Users/alex-shul/Desktop/projects/nlmk/frontend/apcs-web/node_modules/ts-file-parser/node_modules/typescript/lib/typescript.js:13479:24) at Object.visit (/Users/alex-shul/Desktop/projects/nlmk/frontend/apcs-web/node_modules/ts-file-parser/dist/src/tsASTMatchers.js:150:20) at Object.parseStruct (/Users/alex-shul/Desktop/projects/nlmk/frontend/apcs-web/node_modules/ts-file-parser/dist/src/tsStructureParser.js:19:26) at Object.parseStruct (/Users/alex-shul/Desktop/projects/nlmk/frontend/apcs-web/node_modules/ts-file-parser/dist/index.js:35:30) (Use node --trace-warnings ... to show where the warning was created) (node:57070) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:57070) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. tsStructureParser js — apcs-web 2021-04-06 21-21-00

Assignee
Assign to
Time tracking