Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

Does not respect baseUrl compilerOption #78

Open
mjbvz opened this issue Apr 3, 2018 · 0 comments
Open

Does not respect baseUrl compilerOption #78

mjbvz opened this issue Apr 3, 2018 · 0 comments

Comments

@mjbvz
Copy link
Contributor

mjbvz commented Apr 3, 2018

Repo
In VS Code, try changing our src/tsconfig to use "moduleResolution": "node":

{
	"compilerOptions": {
		"module": "amd",
		"moduleResolution": "node",
		"noImplicitAny": false,
		"removeComments": false,
		"preserveConstEnums": true,
		"target": "es5",
		"sourceMap": false,
		"experimentalDecorators": true,
		"declaration": true,
		"noImplicitReturns": true,
		"noUnusedLocals": true,
		"noImplicitThis": true,
		"alwaysStrict": true,
		"baseUrl": ".",
		"outDir": "../out",
		"typeRoots": [
			"typings"
		]
	}
}

Run build script using tsb

Bug
vs/* modules not resolved. I believe this is because the "baseUrl" option is either not respected or being set incorrectly.

If you run tsc -p tsconfig.json, the modules are properly resolved.

Moving from "moduleResolution": "node" to "moduleResolution": "classic" would let us consume @types packages normally instead of maintaining our own copies of them

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant