Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Debug Failure. outdated ts.resolveTypeReferenceDirectives signature. #4409

Closed
sparshrestha opened this issue Jun 30, 2022 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@sparshrestha
Copy link

Describe the bug

ts.Debug.assert(typeof` typeReferenceDirectiveName === "string", "Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");

To Reproduce

cd examples/basic-crud-application/server
npm install
npm start

Socket.IO server version: 4.5.1

Server

  "devDependencies": {
    "@types/chai": "^4.2.16",
    "@types/mocha": "^8.2.3",
    "@types/uuid": "^8.3.0",
    "chai": "^4.3.4",
    "mocha": "^10.0.0",
    "nyc": "^15.1.0",
    "socket.io-client": "^4.0.1",
    "ts-node": "^9.1.1",
    "typescript": "^4.2.4"
  }

Expected behavior
Server for the Basic CRUD Socket.IO example should be running without DEBUG Errors.

Quick Fix
resolveTypeReferenceDirectives is outdated. Removing ^ in server's package.json prevents npm install to fetch latest typescript version and thus works fine running the server side code. #4408

@sparshrestha sparshrestha added the to triage Waiting to be triaged by a member of the team label Jun 30, 2022
@darrachequesne
Copy link
Member

Hi! This should be fixed by 19b225b.

Thanks for the heads-up ❤️

@darrachequesne darrachequesne added documentation Improvements or additions to documentation and removed to triage Waiting to be triaged by a member of the team labels Oct 14, 2022
dzad pushed a commit to dzad/socket.io that referenced this issue May 29, 2023
vanquisher0411 added a commit to vanquisher0411/socketio_project that referenced this issue Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants