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.

Document Node version support / add a warning to tsdx create

See original GitHub issue

Current Behavior

If you’re on Node 8 you get errors when trying to run tsdx create, but the reason for the failures are unclear.

nvm use 8.11.3

npx tsdx create bar

Failed to install dependencies
Error: Command failed with exit code 1: yarn add @types/jest @types/react @types/react-dom husky react react-dom tsdx tslib typescript --dev

Desired Behavior

When I run tsdx create it should tell me that my current Node version is not compatible.

Suggested Solution

Add a deprecation warning for unsupported Node versions when running tsdx create, as well as add Node versions supported in the README.md, and probably add a engines attribute to the package.json describing the same limitations.

Who does this impact? Who is this for?

All users.

Additional context

I only knew this by seeing the recent releases including this PR https://github.com/jaredpalmer/tsdx/pull/426

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
agilgur5commented, Aug 30, 2020

@sw-yx I think you misinterpreted me.

It should be formally dropped in a breaking change (same as all the deps that dropped it did – it is breaking), which is what v0.14.0 is. It was not officially dropped before and is actually still supported (v0.14.0 is the next release with several breaking changes, mostly dependencies).

1reaction
sw-yxcommented, Jan 16, 2020

yup, sure thing. we can add an engines field https://stackoverflow.com/questions/29349684/how-can-i-specify-the-required-node-js-version-in-package-json and use something like check-version.js in the SO reply or something like https://www.npmjs.com/package/check-node-version

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change Log
Updated the required Node version from 8 to 10. While previous versions of TSDX began deprecating support for Node 8, it was not...
Read more >
johnrom/tsdx
Latest version: 0.14.2-noclean3, last published: a year ago. ... tsdx build will output an ES module file and 3 CommonJS files (dev, prod, ......
Read more >
Setting up a monorepo with Lerna for a TypeScript project
This command will create a lerna.json file with a default folder structure ... As Lerna is intended to be used with Node.js, not...
Read more >
npm publish only publish index.js and excluding everything ...
tl;dr: When a .npmignore file is not specified, npm will use your .gitignore file setting, where dist and the files in it are...
Read more >
Getting Started with TSDX and Storybook | by Yoav Ganbar
Out of the box, TSDX has created one component for us, ... like me, (or any other Typescript supporting IDE) you will notice...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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