gts icon indicating copy to clipboard operation
gts copied to clipboard

Error when running build for the first time

Open matthewloring opened this issue 9 years ago • 6 comments

$ npm run build

[email protected] build /Documents/my-module npm run compile

[email protected] compile /Documents/pallas tsc -p .

error TS18001: A path in an 'extends' option must be relative or rooted, but 'node_modules/google-ts-style/tsconfig-google.json' is not. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] compile: tsc -p . npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] compile script.

matthewloring avatar Aug 08 '17 18:08 matthewloring

What version of g-t-s?

ofrobots avatar Aug 08 '17 18:08 ofrobots

0.1.2

matthewloring avatar Aug 08 '17 18:08 matthewloring

I was able to work around by changing the generated tsconfig.json from

"extends": "node_modules/google-ts-style/tsconfig-google.json"

to

"extends": "./node_modules/google-ts-style/tsconfig-google.json"

matthewloring avatar Aug 08 '17 18:08 matthewloring

Thanks, Should be easy to fix here: https://github.com/google/ts-style/blob/master/src/init.ts#L149. Wanna submit a PR?

ofrobots avatar Aug 08 '17 18:08 ofrobots

Yup

matthewloring avatar Aug 08 '17 18:08 matthewloring

I believe this is fixed now. Reopen if you're still seeing issues. The module has been renamed to gts now.

ofrobots avatar Sep 01 '17 01:09 ofrobots