You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like swc doesn't allow the keyword arguments in strict mode, and type-fest causes this error when building. Instead of failing the build, the expected behaviour is that the build continues.
✖ nx run my-package:build
Compiling with SWC for my-package...
x 'eval' and 'arguments' cannot be used as a binding identifier in strict mode
,-[my-package/node_modules/type-fest/source/partial-on-undefined-deep.d.ts:55:1]
55 | /**
56 | Utility type to get the value type by key and recursively call `PartialOnUndefinedDeep` to transform sub-objects.
57 |*/
58 |type PartialOnUndefinedDeepValue<T, Options extends PartialOnUndefinedDeepOptions> = T extends BuiltIns |((...arguments: any[]) => unknown) : ^^^^^^^^^59 | ? T60 | : T extends ReadonlyArray<infer U> // Test if type is array or tuple61 | ? Options['recurseIntoArrays'] extends true // Check if option is activated `----
Manually editing type-fest in node_modules to use some other name for the arguments fixes this issue.
Upvote & Fund
We're using Polar.sh so you can upvote and help fund this issue.
The funding will be given to active contributors.
Thank you in advance for helping prioritize & fund our backlog.
The text was updated successfully, but these errors were encountered:
It looks like swc doesn't allow the keyword
arguments
in strict mode, andtype-fest
causes this error when building. Instead of failing the build, the expected behaviour is that the build continues.Manually editing
type-fest
in node_modules to use some other name for the arguments fixes this issue.Upvote & Fund
The text was updated successfully, but these errors were encountered: