Comments (2)
Main reason this is an issue is this way of importing the module is actually in conflict with the type definitions of it, meaning that TypeScript will not let you import the module by doing (await import(...)).default.default
eventhough that is the correct way to successfully import it as a result of the weird exports.default =
notation being used in the compiled JavaScript file.
from ts-transformer-keys.
Yes, it is probably a good idea to include the ESM version of transformer.js
into this package to make it a dual CommonJS/ES module package.
I will consider doing that.
But I guess your issue can be simply solved by changing the TypeScript compilation configuration, such as enabling esModuleInterop
.
from ts-transformer-keys.
Related Issues (20)
- Keys transformer includes `never` typed keys
- How do you get node to call a `.ts` file without node-ts?
- Usage with ts-jest HOT 5
- Calling instance method from getter in VueSingleFileComponent causes error: Cannot find module HOT 6
- How to use with this with React + Typescript? HOT 2
- how can this be used with ts-node (for node worker_threads ?)
- Warning when using with AWS Lambda and Parcel HOT 1
- Support for gulp HOT 1
- Get required Properites HOT 1
- Fix README spelling error HOT 1
- Would it work with esbuild-loader?
- throw/warn on generics
- TypeArguments is always empty in vite, but can be in rollup HOT 3
- Tests failed in windows 10
- How to get required and optional properties HOT 3
- Cannot find module 'ts-transformer-keys'.
- (0 , _tsTransformerKeys.keys) is not a function HOT 28
- Uncaught (in promise) TypeError: keys is not a function at setup (index.vue:18:1) in Vue 3 app HOT 2
- deprecation warnings
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ts-transformer-keys.