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.

Using `resolveFullPaths` with watch mode cause the transpiled file not to have `.js` extenstion

See original GitHub issue

As title, When using resolveFullPaths in watch mode, the transpiled file doesnt have .js extension It work just fine without watch mode

tsconfig.json

{
	"compilerOptions": {
             ....
	},
	"tsc-alias": {
		"verbose": false,
		"resolveFullPaths": true,
	}
}

And run tsc -w & tsc-alias -w causing the transpiled file lost its extension

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
nmsobricommented, Sep 1, 2022

I have to mention this, actually solution number 1 concurrently \"tsc -w\" \"tsc-alias -w\" , actually also not working if this is the first time you running this command ( meaning, there is no generated output yet )… On subsequent running of this command, it will work… Quick fix would be tsc && (concurrently \"tsc -w\" \"tsc-alias -w\")

2reactions
raouldeheercommented, May 9, 2022

@tkcto I haven’t been able to reproduce this bug. That makes it exceedingly difficult to give a time estimate.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Compiled JavaScript import is missing file extension #40878
ts' , the compiler gives me error TS2691: An import path cannot end with a '.ts' extension. Consider importing './dep' instead . So...
Read more >
How to transpile ES modules with webpack and Node.js
Learn how webpack interacts with and supports ES modules in this deep dive tutorial on transpilation in Node.js.
Read more >
Typescript — How to solve the problem with unresolved path ...
js file containing the line with the path alias. The actual cause of the issue is that the tsc compiler does not transpiles...
Read more >
TSConfig Reference - Docs on every TSConfig option
All relative paths found in the configuration file will be resolved ... extensions are included (e.g. .ts , .tsx , and .d.ts by...
Read more >
Appending .js extension on relative import statements during ...
I usually just use the . js extension in import statements in typescript files as well and it works. Not using a file...
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