-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
generated .d.ts syntax error #1306
Comments
I can't imagine why, but it looks like this only happens with Node 12.x (current LTS). Downgrading to 10.x causes it to emit the correct That said, as far as I can tell, replacing all instances of |
It looks like this is caused by jsdoc/jsdoc#1643; the behavior of |
thanks a lot a lot a lot very very much! |
npm install protobufjs This bug also exists after installation |
My way https://www.npmjs.com/package/protobuf-typescript |
this can be reverted after jsdoc is upgraded, which is blocked on jsdoc/jsdoc#1644
this can be reverted after jsdoc is upgraded, which is blocked on jsdoc/jsdoc#1644
this can be reverted after jsdoc is upgraded, which is blocked on jsdoc/jsdoc#1644
protobuf.js version: 6.8.8
D:\Project\skybox\Engine\Monju\Protocol\ProtoBuf\Protocol.d.ts
Error:Error:line (74)TS2693: 'string' only refers to a type, but is being used as a value here.
Error:Error:line (74)TS2531: Object is possibly 'null'.
Error:Error:line (81)TS2304: Cannot find name 'fromObject'.
Error:Error:line (81)TS2552: Cannot find name 'object'. Did you mean 'Object'?
Error:Error:line (89)TS2552: Cannot find name 'toObject'. Did you mean 'Object'?
Error:Error:line (89)TS2552: Cannot find name 'message'. Did you mean 'Message'?
Error:Error:line (89)TS2552: Cannot find name 'options'. Did you mean 'Option'?
Error:Error:line (89)TS2339: Property 'IConversionOptions' does not exist on type 'typeof import("D:/Project/skybox/Engine/Monju/node_modules/protobufjs/index")'.
Error:Error:line (95)TS2552: Cannot find name 'toJSON'. Did you mean 'JSON'?
Error:Error:line (164)TS2693: 'string' only refers to a type, but is being used as a value here.
Error:Error:line (164)TS2531: Object is possibly 'null'.
Error:Error:line (171)TS2304: Cannot find name 'fromObject'.
Error:Error:line (171)TS2552: Cannot find name 'object'. Did you mean 'Object'?
Error:Error:line (179)TS2552: Cannot find name 'toObject'. Did you mean 'Object'?
Error:Error:line (179)TS2552: Cannot find name 'message'. Did you mean 'Message'?
Error:Error:line (179)TS2304: Cannot find name 'options'.
Error:Error:line (179)TS2339: Property 'IConversionOptions' does not exist on type 'typeof import("D:/Project/skybox/Engine/Monju/node_modules/protobufjs/index")'.
Error:Error:line (185)TS2304: Cannot find name 'toJSON'.
Error:Error:line (254)TS2693: 'string' only refers to a type, but is being used as a value here.
Error:Error:line (254)TS2531: Object is possibly 'null'.
Error:Error:line (261)TS2304: Cannot find name 'fromObject'.
Error:Error:line (261)TS2304: Cannot find name 'object'.
Error:Error:line (269)TS2304: Cannot find name 'toObject'.
Error:Error:line (269)TS2304: Cannot find name 'message'.
Error:Error:line (269)TS2304: Cannot find name 'options'.
Error:Error:line (269)TS2339: Property 'IConversionOptions' does not exist on type 'typeof import("D:/Project/skybox/Engine/Monju/node_modules/protobufjs/index")'.
Error:Error:line (275)TS2304: Cannot find name 'toJSON'.
Error:Error:line (74)TS1005: ',' expected.
Error:Error:line (74)TS1003: Identifier expected.
Error:Error:line (74)TS1005: ',' expected.
Error:Error:line (74)TS1109: Expression expected.
Error:Error:line (74)TS1128: Declaration or statement expected.
Error:Error:line (81)TS1128: Declaration or statement expected.
Error:Error:line (81)TS1128: Declaration or statement expected.
Error:Error:line (81)TS1005: ',' expected.
Error:Error:line (81)TS1003: Identifier expected.
Error:Error:line (81)TS1005: '(' expected.
Error:Error:line (81)TS1005: ',' expected.
Error:Error:line (81)TS1005: ')' expected.
Error:Error:line (89)TS1128: Declaration or statement expected.
Error:Error:line (89)TS1128: Declaration or statement expected.
Error:Error:line (89)TS1005: ',' expected.
Error:Error:line (89)TS1109: Expression expected.
Error:Error:line (89)TS1005: ';' expected.
Error:Error:line (89)TS1003: Identifier expected.
Error:Error:line (89)TS1005: '(' expected.
Error:Error:line (95)TS1128: Declaration or statement expected.
Error:Error:line (95)TS1005: ';' expected.
Error:Error:line (95)TS1003: Identifier expected.
Error:Error:line (95)TS1005: '(' expected.
Error:Error:line (96)TS1128: Declaration or statement expected.
Error:Error:line (164)TS1005: ',' expected.
Error:Error:line (164)TS1003: Identifier expected.
Error:Error:line (164)TS1005: ',' expected.
Error:Error:line (164)TS1109: Expression expected.
Error:Error:line (164)TS1128: Declaration or statement expected.
Error:Error:line (171)TS1128: Declaration or statement expected.
Error:Error:line (171)TS1128: Declaration or statement expected.
Error:Error:line (171)TS1005: ',' expected.
Error:Error:line (171)TS1003: Identifier expected.
Error:Error:line (171)TS1005: '(' expected.
Error:Error:line (171)TS1005: ',' expected.
Error:Error:line (171)TS1005: ')' expected.
Error:Error:line (179)TS1128: Declaration or statement expected.
Error:Error:line (179)TS1128: Declaration or statement expected.
Error:Error:line (179)TS1005: ',' expected.
Error:Error:line (179)TS1109: Expression expected.
Error:Error:line (179)TS1005: ';' expected.
Error:Error:line (179)TS1003: Identifier expected.
Error:Error:line (179)TS1005: '(' expected.
Error:Error:line (185)TS1128: Declaration or statement expected.
Error:Error:line (185)TS1005: ';' expected.
Error:Error:line (185)TS1003: Identifier expected.
Error:Error:line (185)TS1005: '(' expected.
Error:Error:line (186)TS1128: Declaration or statement expected.
Error:Error:line (254)TS1005: ',' expected.
Error:Error:line (254)TS1003: Identifier expected.
Error:Error:line (254)TS1005: ',' expected.
Error:Error:line (254)TS1109: Expression expected.
Error:Error:line (254)TS1128: Declaration or statement expected.
Error:Error:line (261)TS1128: Declaration or statement expected.
Error:Error:line (261)TS1128: Declaration or statement expected.
Error:Error:line (261)TS1005: ',' expected.
Error:Error:line (261)TS1003: Identifier expected.
Error:Error:line (261)TS1005: '(' expected.
Error:Error:line (261)TS1005: ',' expected.
Error:Error:line (261)TS1005: ')' expected.
Error:Error:line (269)TS1128: Declaration or statement expected.
Error:Error:line (269)TS1128: Declaration or statement expected.
Error:Error:line (269)TS1005: ',' expected.
Error:Error:line (269)TS1109: Expression expected.
Error:Error:line (269)TS1005: ';' expected.
Error:Error:line (269)TS1003: Identifier expected.
Error:Error:line (269)TS1005: '(' expected.
Error:Error:line (275)TS1128: Declaration or statement expected.
Error:Error:line (275)TS1005: ';' expected.
Error:Error:line (275)TS1003: Identifier expected.
Error:Error:line (275)TS1005: '(' expected.
Error:Error:line (276)TS1128: Declaration or statement expected.
The text was updated successfully, but these errors were encountered: