question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ts_transformer_keys_1.keys is not a function

See original GitHub issue

Hi 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:open
  • Created 6 years ago
  • Reactions:36
  • Comments:49 (13 by maintainers)

github_iconTop GitHub Comments

14reactions
kimamulacommented, Feb 12, 2018

@martnst Sorry for the late response. If you are using Windows, the issue is probably fixed by this commit. Please try v0.3.1.

13reactions
arnav7633commented, Feb 16, 2022

Was this fixed? I am getting the same issue

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found