gluegun icon indicating copy to clipboard operation
gluegun copied to clipboard

tsconfig.json:18:5 - error TS5053: Option 'sourceMap' cannot be specified with option 'inlineSourceMap'.

Open Drew-Daniels opened this issue 2 years ago • 2 comments

Describe the bug After following the instructions on the Quick Start, I am able to successfully link and run a newly created CLI app, but am running into an issue running yarn build, without having modified any of the originally generated code from running the gluegun new script.

To Reproduce Steps to reproduce the behavior:

  1. Create a CLI with npx gluegun new my-app
  2. Select TypeScript as language
  3. Run yarn build
  4. See TypeScript build error

image

Expected behavior I would expect that upon trying to build the app after not modifying any of the source code, the build would work.

Screenshots If applicable, add screenshots to help explain your problem.

Doctor (please complete the following information):

  • OS: [macOS 14.0 (23A344)]
  • Gluegun Version [5.1.6]

Additional context Removing "sourceMap": true from my tsconfig.json fixed the issue - link

I have a globally installed typescript v5.2.2.

Drew-Daniels avatar Oct 12 '23 03:10 Drew-Daniels

Yeah we need to remove one of them. Any recommendations which? I can look later but currently on mobile.

jamonholmgren avatar Oct 12 '23 03:10 jamonholmgren

Thanks for confirming! My vote would be for removing sourceMap since it would result in less files being output as part of the build (simplicity), but I wouldn't say I have a huge preference either way.

Drew-Daniels avatar Oct 12 '23 03:10 Drew-Daniels