ts_transformer_keys_1.keys is not a function
See original GitHub issueHi there!
This package sounds like the ideal solution to a problem I have but I am struggling to get past the following error: “TypeError: ts_transformer_keys_1.keys is not a function” and I am not sure how to tell if this is an error on my part or if there is something out of my control that is not working.
I have tried compiling the following file with typescript 2.4.0 and running in the browser with no other packages:
import { keys } from "ts-transformer-keys";
interface Props {
id: string;
name: string;
age: number;
}
const keysOfProps = keys<Props>();
console.log(keysOfProps);
I have also tried using ts-node and executing the same file from the command line, though here in particular I am unsure to what extend ts-node is a bottleneck.
I hope I’m missing something super simple!
Thanks in advance for any thoughts in any direction!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:36
- Comments:49 (13 by maintainers)
Top Results From Across the Web
Nest not working with ts-transformer-keys - Stack Overflow
I'm trying to use ts-transformation-keys in my Nest application. ... TypeError: ts_transformer_keys_1.keys is not a function at Object.
Read more >Ts-transformer-keys - npm.io
This package exports 2 functions. One is keys which is used in TypeScript codes to obtain keys of given type, while the other...
Read more >ts-transformer-keys - npm
A TypeScript custom transformer which enables to obtain keys of given type.. Latest version: 0.4.4, last published: 13 days ago.
Read more >ts-transformer-keys - npm Package Health Analysis - Snyk
Learn more about ts-transformer-keys: package health score, popularity, security, maintenance, versions and more.
Read more >How to iterate over the properties of an interface/class in order ...
I tried looking at the "ts-transformer-keys" package but ran into the same error about "ts_transformer_keys_1.keys is not a function" people ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@martnst Sorry for the late response. If you are using Windows, the issue is probably fixed by this commit. Please try v0.3.1.
Was this fixed? I am getting the same issue