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.

Does not work after upgrading to 4.0.0

See original GitHub issue

ts-node just suddenly stop working after upgrading to 4.0.0 (The same with 4.0.1):

nodemon.json

{
	"watch": ["src"],
	"ext": "ts",
	"ignore": ["src/**/*.spec.ts"],
	"exec": "ts-node -P ./tsconfig.json --no-cache ./src/index.ts"
}

tsconfig.json

{
	"compilerOptions": {
		"target": "esnext",
		"module": "commonjs",
		"sourceMap": true,
		"lib": ["esnext"],
		"outDir": "build",
		"rootDir": "src",
		"importHelpers": true,
		"noEmitOnError": true,
		"strict": true,
		"noUnusedLocals": true,
		"noUnusedParameters": true,
		"noImplicitReturns": true,
		"noFallthroughCasesInSwitch": true,
		"moduleResolution": "node",
		"experimentalDecorators": true,
		"emitDecoratorMetadata": true
	}
}

nodemon: 1.12.5 (dev dependency) typescirpt: 2.6.2 (dev dependency) ts-node: 4.0.1 (dev dependency)

Reverted ts-node back to 3.30 solved the problem.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:7
  • Comments:16 (10 by maintainers)

github_iconTop GitHub Comments

8reactions
unlightcommented, Dec 14, 2017

node v8.9.0 Win8.1x64 node -r ts-node/register works for me.

2reactions
blakeembreycommented, Dec 14, 2017

Interesting, thanks. I thought it may have been a duplicate of https://github.com/TypeStrong/ts-node/issues/481, but not if it’s on mac. Looks like these issues may be negative side effects of https://github.com/TypeStrong/ts-node/pull/419.

For anyone running into this, can you switch to using node -r ts-node/register? This avoids many of the process issues that were occurring and is likely the recommended way to use in the next release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Doesn't Work After Upgrade to 4.0.0 #1201 - GitHub
Always pop up a window, tell me to give it permission. I've tried to remove it from the accessibility list then add it...
Read more >
Why has xts.index stopped working after upgrading to R 4.0.0?
I have a large body of code using xts objects, everything works fine with upgrade to R 4.0.0, but the index function has...
Read more >
Version 4.0.0 Upgrade Problem - Support & Bugs
After upgrading to v4 I received the following error message on the dashboard. The plugin DisableTracking could not be loaded as it has ......
Read more >
Known Issues | Cribl Docs
Problem: After upgrading to Cribl Stream 4.0.0, multiple Secret decrypt failed with error messages might appear in logs. These are spurious, and you...
Read more >
Release Notes for MongoDB 4.0
4.0.28 - January 31, 2022. Issues fixed: SERVER-62065 Upgrade path from 3.6 to 4.0 can leave chunk entries without history on the shards....
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