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
Not sure if it is my fault or not, but I'm using the README's example and getting this error:
const keysOfProps = keys<Props>();
^
TypeError: ts_transformer_keys_1.keys is not a function
at Object.<anonymous> (C:\Users\Gabriel\Projects\typescript-proj\index.ts:8:21)
at Module._compile (module.js:649:30)
at Module.m._compile (C:\Users\Gabriel\AppData\Roaming\npm\node_modules\ts-node\src\index.ts:402:23)
at Module._extensions..js (module.js:660:10)
at Object.require.extensions.(anonymous function) [as .ts] (C:\Users\Gabriel\AppData\Roaming\npm\node_modules\ts-node\src\index.ts:405:12)
at Module.load (module.js:561:32)
at tryModuleLoad (module.js:501:12)
at Function.Module._load (module.js:493:3)
at Function.Module.runMain (module.js:690:10)
at Object.<anonymous> (C:\Users\Gabriel\AppData\Roaming\npm\node_modules\ts-node\src\bin.ts:145:12)
I reopened #4 to avoid duplicates as it seems that many people are encountering this error.
I would like to know how you are using the custom transformer to compile the keys function.
The example usage of the custom transformer is written here.
Not sure if it is my fault or not, but I'm using the README's example and getting this error:
I have these dependencies:
My code:
Thanks in advance
The text was updated successfully, but these errors were encountered: