-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
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
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation