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.

How to define typescript configuration

See original GitHub issue

Question and problem with compiling

Description

How can I define the tsconfig.json configuration file. They always use a other (ng-packagr\lib\tsconfig) configuration than the project has.

How To Reproduce

Use a simple example with ES7 features. Example export function toolArray(list: Array<string>, value: string): boolean { return list.include(value); }

Expected Behaviour

error TS2551: Property ‘include’ does not exist on type ‘string[]’. Did you mean ‘includes’?

Version Information

$ node_modules/.bin/ng-packagr --version
  "ng-packagr": "^2.4.1",

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
alan-agius4commented, Mar 27, 2018

In order to use a different tsconfig you’d need to use the ng-packagr API

0reactions
github-actions[bot]commented, Jun 19, 2020

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation - What is a tsconfig.json - TypeScript
command line option that specifies the path of a directory containing a tsconfig.json file, or a path to a valid .json file containing...
Read more >
TypeScript configuration - Angular
A given Angular workspace contains several TypeScript configuration files. At the root tsconfig.json file specifies the base TypeScript and Angular compiler ...
Read more >
TypeScript Compiling with Visual Studio Code
Typically the first step in any new TypeScript project is to add a tsconfig.json file. A tsconfig.json file defines the TypeScript project settings,...
Read more >
How to create an application-specific config file for TypeScript?
I am working on a web application using TypeScript. For some parts of the application, I would like to define a simple configuration...
Read more >
TypeScript - Basic Configuration⚙️ - DEV Community ‍ ‍
You can create a new file with the name tsconfig.json or jsconfig.json in your project root directory. Once created, you can define some...
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