tsconfig Questions

3

I have created a project using create react app typescript. I have a few d.ts files where I have defined interfaces types and enums. When I run start script. It is not able to load the d.ts files. ...
Bilyeu asked 1/3, 2019 at 17:50

2

Typescript compilation is taking a long time to run, so I used generateTrace from https://github.com/microsoft/TypeScript/pull/40063 It showed that most of the time was comparing complicated classe...
Reginaldreginauld asked 23/12, 2021 at 8:51

1

Solved

I am making a discord bot and I was trying the path aliases feature on typescript. but I somehow keep getting this error when I am using it. I am using NodeJs and using Here is the error message Er...
Lavalava asked 29/12, 2021 at 4:15

1

Solved

I have a package hosted in an Azure Artifacts npm feed, scoped to @company, e.g. to add the package we use yarn add @company/package. This package is a typescript project, that when compiled also i...
Lindsay asked 18/8, 2020 at 13:21

3

I am looking for a public official TypeScript API (ideally, of version 4.x) for parsing tsconfig.json / jsconfig.json files into complete TypeScript configuration objects (by "complete" I...
Galleywest asked 13/6, 2021 at 9:29

2

Ever since upgrading to Jest 26 & Angular 10, the unit test error line numbers are incorrectly reported. I have Been using Jest since Angular 4 and have upgraded with each new version. I have r...
Toreutic asked 9/3, 2021 at 16:28

4

Solved

I have installed TypeScript 1.8.2, and using Visual Studio 2015. I have a simple project where I have problems excluding folders from the tsconfig.json file. The problem is I would like to exclude ...
Edaedacious asked 26/2, 2016 at 9:25

1

(Apologies if this is a duplicate, I can't find any Q&A's that deal with existing .jsx files) I've been migrating my app over to typescript and have now got a load of the following errors: Coul...
Dingo asked 15/10, 2021 at 7:4

3

Solved

I am looking for some help with Angular7 libraries. I have a project A in which I have developed two libraries - library 1 and library 2. The second library (library 2) has a dependency on the fi...
Therianthropic asked 18/2, 2019 at 13:6

3

Solved

What does target in tsconfig.json signify? { "compilerOptions": { "sourceMap": true, "target": "es5", "module": "commonjs", "jsx": "react", "moduleResolution": "classic", "lib": [ "es2015...
Kao asked 23/2, 2017 at 12:35

2

Solved

I am trying to add images using import import image from '../assets/images/picture.jpg am using Typescript with gatsby ... the strange thing is it works fine with normal javascript (.js ~ .jsx fi...
Topazolite asked 8/4, 2021 at 4:37

5

Solved

Instead of relative module imports I would like to import my modules like this: import { IntHelper } from 'utils/IntHelper';. Even though intellisense works fine in VSCode the transpiled javascript...
Hysterectomize asked 9/11, 2017 at 20:20

2

Solved

When developing a typescript project I run the compiler in watch mode: tsc --watch Yet when an error appears, I find it hard to discern in the output as I have plain formatted text: Often tim...
Naevus asked 19/12, 2016 at 12:50

1

I want to disable DOM type definitions in a Node.js TypeScript project. I have configured TypeScript using the configuration shown in the snippet below. Despite explicitly setting the "lib&quo...

2

Solved

I have this simple line of code: const target = e.target as HTMLLIElement; and I am getting this error: Line 18:28: Parsing error: Missing semicolon > 18 | const target = e.target as HTMLLIEle...
Spavin asked 6/5, 2021 at 6:26

2

I want to compile just the "src" folder. hence i do include:["src"], and node_modules are found outside src only, then why do i need to exclude them like, exclude: ["node_modules"] as suggested by ...
Selfgoverned asked 27/4, 2020 at 4:53

6

Solved

I was reading Angular2 references and found this: tsconfig.json. I would like to know what the following parameters mean? { "compilerOptions": { "target": "es5", &q...
Procedure asked 24/5, 2016 at 12:26

3

Solved

Edit 1: Added GitHub URL to project Edit 2: Removing baseUrl from tsconfig.json fixes all problems and using relative imports works fine. Link: Github How do I generate a typescript declaration ...
Cepheus asked 25/9, 2018 at 14:16

2

Solved

I get this warning every time I build for production. When I build for production I disable source maps in the rollup output config. output: [{ dir: "...", format: "...", source...
Symbiosis asked 28/7, 2020 at 6:57

3

I have run into a situation where a type definition in node_modules/@types is installing its own @types dependencies, and these "nested" @types conflict with my top level @types. @types |-angular ...
Squirrel asked 25/5, 2018 at 13:42

5

I tried these error TS2304: Cannot find name 'Buffer', https://github.com/aws/aws-sdk-js/issues/994 and Using aws-sdk with angular2 My typings and @types/node seems to have been insta...

1

Solved

I want to convert a html string to a html element in deno with typescript. I found this function for it: function createElementFromHTML(htmlString: string) { var div = document.createElement('div'...
Cleek asked 5/12, 2020 at 11:51

4

I am new in typescript and I have 2 questions. a. I want to import a simple JSON file in my typescript (main.ts) using the following code in visual studio code (3.6.2) editor: import test from "....
Honorine asked 11/9, 2019 at 12:42

2

Solved

Hey guys this question isn't gone through with this similar, Build: Cannot use JSX unless the '--jsx' flag is provided Cannot use JSX unless the '--jsx' flag is provided tried the...
Spadix asked 14/10, 2020 at 15:14

2

I am trying to create a React TypeScript NPM package. I have finished my code and created package.json and tsconfig.json. But inside my package I also have a bunch of CSS files that I want to inclu...
Connecticut asked 6/12, 2019 at 12:48

© 2022 - 2024 — McMap. All rights reserved.