Type error causing build failure in the destination package: A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type. #272
Labels
bug
Something isn't working
Provide a general summary of the issue here
We're using RSC in another TS-based package. There's a build failure caused by the type configuration / export issues from RSC.
🤔 Expected Behavior?
The build of the destination package should be successful.
😯 Current Behavior
The build command
yarn prepack
failed with the following 4 error messages:💁 Possible Solution
The possible root cause of the problem may be related to the interface definition for Datum, specifically L684-686
react-spectrum-charts/src/types/Chart.ts
Line 683 in 1dd0630
where the constants like
MARK_ID
are directly used to define the keys for the interface, which triggers the issueA computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type
. And then these errors further triggers the first error where the paths alias@constants
cannot be correctly resolved.One attempt to fix is #270, where the constants are converted to literal types.
References
🔦 Context
No response
🖥️ Steps to Reproduce
yarn prepack
Version
1.7.0
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
MacOS
🧢 Your Company/Team
Adobe/AEP Reporting Experience
🕷 Tracking Issue
No response
The text was updated successfully, but these errors were encountered: