[Bug]: A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type
speedofsound99 opened this issue ยท 17 comments
The problem
Getting these errors now trying to use winston. These were introduced in latest version.
node_modules/logform/index.d.ts:11:3 - error TS1169: A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type.
11 [LEVEL]?: string;
~~~~~~~
node_modules/logform/index.d.ts:12:3 - error TS1169: A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type.
12 [MESSAGE]?: any;
~~~~~~~~~
node_modules/logform/index.d.ts:13:3 - error TS1169: A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type.
13 [SPLAT]?: any;
~~~~~~~
What version of Logform presents the issue?
2.5.0
What version of Node are you using?
18.12.0
If this worked in a previous version of Logform, which was it?
2.4.2
Minimum Working Example
No response
Additional information
No response
๐ Search Terms
computed property name error
Same here, latest version broke our build too
workaround for me for now, include logform in package.json and set version to 2.4.2
Same here :(
I have the same issue but logform is dependency of winston lid in my code. How can I fix it ? any helps will be appreciated .
I have the same issue but logform is dependency of winston lid in my code. How can I fix it ? any helps will be appreciated .
me too~
doing as @speedofsound99 says works actually
Fix this issue as much as possible
you guys can add "skipLibCheck": true" into tsconfig. work for me
From the release notes "All the improvements in this release are from first-time contributors"
I'm also getting same issue and broken down the build.
same here
Thank you @TheNhatAT work for me. add "skipLibCheck": true" into tsconfig.
same here
same here!!!! any update???
skipLibCheck: true would be an overkill and would make TS less useful btw. You should avoid using it permanently.