Comments (4)
Never mind, I fixed it by explicitly specifying the typescript version that is specified in this project's package.json: npx -p [email protected] -p cjstoesm cjstoesm ./src/lib
. I wish this was documented in the README though.
from cjstoesm.
I'm experiencing this same issue but setting the TS version isn't helping. May create a new issue if I can't figure it out.
from cjstoesm.
With TypeScript 4.9.5, I am getting the following warning:
DeprecationWarning: 'isTypeAssertion' has been deprecated since v4.0.0. Use `isTypeAssertionExpression` instead.
DeprecationWarning: 'createImportDeclaration' has been deprecated since v4.8.0. Decorators are no longer supported for this function. Callers should switch to an overload that does not accept a 'decorators' parameter.
DeprecationWarning: 'createExportAssignment' has been deprecated since v4.8.0. Decorators are no longer supported for this function. Callers should switch to an overload that does not accept a 'decorators' parameter.
They seem related to the ImportClause issue above.
Can we reopen this issue or create a new one as it seems TypeScript 5 support is not 100% here?
from cjstoesm.
I'm experiencing this same issue but setting the TS version isn't helping. May create a new issue if I can't figure it out.
Might be late for you, but for others for future reference: make sure you install cjstoesm in your project directory with typescript@4. If you install it globally, then make sure that typescript globally is also v4.
from cjstoesm.
Related Issues (20)
- Cannot run with npx HOT 2
- Preserve white-space HOT 3
- Preserve Comments HOT 5
- Doesn't work: missing outdir HOT 2
- Programmatic usage produces empty output HOT 3
- Does cjstoesm get dependent sources from node_modules (am I using it correctly)?
- Provide API method to transform a source code string HOT 3
- Improper transform on module.exports = { a: require('./b') }
- Option to convert exported objects into individual exports
- Support for direct in-place replacement? HOT 2
- Cannot read property 'text' of undefined HOT 10
- Support import assertions HOT 1
- Usage documentation is unclear HOT 2
- Issue when trying to transform module.exports with object
- package creates variable names starting with numbers
- Hi HOT 1
- feature request: move requires at bottom of file to top
- CategoryInfo : ObjectNotFound: (cjstoesm:String) [], CommandNotFoundException
- Doesn't work with newer TypeScript versions HOT 3
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 cjstoesm.