添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

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 [Bug]: A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type [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 Feb 7, 2023 · 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

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~