tsconfig Questions
1
Solved
I have a monorepo which exposes a TypeScript module, which is consumed & used by a React TypeScript project.
When the module inserts arbitrary React elements to the virtual DOM - everything wor...
Florineflorio asked 3/8, 2020 at 5:28
2
Solved
If we enable sourcemap which allows us to debug on the browser. Likewise looking for the use case of declaration and declarationMap.
I have searched over the internet, but my bad could not found t...
Antigen asked 19/10, 2019 at 2:17
1
Solved
I have seen this and this posts and they have made me understand tsconfig.app.json and tsconfig.json.
I have an angular app which has tsconfig.app.json, tsconfig.json and tsconfig.spec.json
What is...
Lavella asked 27/6, 2020 at 9:24
1
I am trying to build a utility npm package. In my src directory I have a bunch of typescript files that declare multiple interfaces / types. For example in src/value-updatable.ts I have:
export in...
Lowder asked 25/10, 2019 at 7:50
1
I'm using the awesome typescript-eslint together with ESLint.
Problem description: the TypeScript ESLint parser complains about src/module.spec.ts not being part of the project, and this is correc...
Selfsacrifice asked 2/6, 2020 at 14:24
1
Solved
I'm working on an Angular 9 project. I'd like to use a ResizeObserver, but since this type is currently missing from TypeScript's lib.dom.d.ts (issue), I tried to add Jason Strothmann's ResizeObser...
Tabes asked 13/5, 2020 at 8:53
1
Solved
My codebase contains two typescript projects:
for a react web app
for web workers
The web worker codebase is part of my public/ folder. Which means that there are two typescript projects in the...
Diane asked 5/5, 2020 at 10:47
1
I am planning a monorepo typescript project like below:
/ (root)
+--backend/
| +-src/
| \-tsconfig.json
+--shared/
| \-src/
\--frontend/
\-src/
tsconfig.json is defined like below:
{
"compi...
Tectonic asked 28/3, 2020 at 3:14
2
In a TS project I'd like the following to be blocked:
A file from folder common importing from folder projectA
A file from folder projectB importing from folder projectA
I'd like the following to...
Linsk asked 16/4, 2020 at 2:47
2
I am trying to write tests for my nodejs server application and by now everything worked fine. I can compile my code from typescript to javascript without error and everything but when I try to run...
Sawfish asked 18/10, 2018 at 8:51
1
Solved
I am trying to understand the typescript module compiler option.
I went through typescript documentation - docs
It says module option is to Specify module code generation.
What does that mean?
...
Tiernan asked 2/4, 2019 at 9:52
7
How to exclude files from the Angular build using Angular-CLI. I've just added the path to exclude in the tsconfig.json and tsconfig.app.json files, but when I run ng serve, Angular is still trying...
Disciplinant asked 6/7, 2017 at 15:11
2
Solved
I have a project from which I need to build two different products. Say I have
./src/advanced
./src/basic
All code is written in Typescript so I need to compile this with tsc
Because of this, I...
Moleskin asked 11/10, 2019 at 8:21
0
Running tsc -b --verbose, I get the following output every time:
- Projects in this build:
* tsconfig.json
- Project 'tsconfig.json' is out of date because output file 'dist/src/auth.js' does...
Raffle asked 8/3, 2020 at 15:22
2
I have a project that written in Typescript on NodeJS. I am using relative path for my modules to import another. But this usage is getting dirty while project is growing. Because of that I want to...
Guddle asked 5/3, 2020 at 12:34
2
Solved
EDIT #1: seems like I have a working configuration, all suggestions to improve this are welcome though. See answer: https://stackoverflow.com/a/42269408/1155847
ORIGINAL QUESTION:
I'm currently...
Thickness asked 16/2, 2017 at 9:5
3
Solved
I have the following jsconfig.json in the root of my react app:
{
"compilerOptions": {
"baseUrl": "./src",
"paths": {
"rmv": ["components/rmv/*"]
}
}
}
and there is a helper.jsx file loca...
Kwapong asked 19/2, 2020 at 21:2
1
Solved
I'm using WebStorm with my Angular project, so I have a lot of different tsconfig files (tsconfig.json, tsconfig.lib.json, tsconfig.lib.prod.json and tsconfig.spec.json).
Now most of the configura...
Slugabed asked 19/2, 2020 at 11:43
2
Solved
In my project I am using TS 3.7.2 which should support optional chaining. But when I try to use it like that: const state = urlParams.state?.toString() I get the error:
Support for the experimenta...
Waldenses asked 25/11, 2019 at 22:21
1
Solved
I want to compile Typescript files to multiple targets like to ES5 and ES6 both. I have the following example directory:
ES5
ES6
test.ts
tsconfig.json
So when I run the compiler I want it to c...
Trichiasis asked 13/11, 2019 at 10:31
1
The documentation to use rxjs-5-to-6-migrate states the following:
To refactor TypeScript code so that it doesn't depend on rxjs-compat, you can use rxjs-tslint.
npm i -g rxjs-tslint
rxjs-5-to-6...
1
Solved
This question is similar to this question: How to use different tsconfig file for tests? But I am asking for visual studio code.
I have two tsconfig files:
tsconfig.json for all application file...
Compost asked 15/7, 2019 at 17:37
2
Solved
Here's the Github MCVE showing an issue. npm run compile shows the error.
I'm trying to do this:
import {Todo} from '@test';
But it's not resolving.
src/index.ts:1:20 - error TS2307: Cannot ...
Larhondalari asked 27/3, 2019 at 18:10
1
Solved
Is there a way to declare a different module name for a generated .d.ts file?
tsc generates declare module "index" { instead of declare module "@myorg/my-pkg" (which would match the name attribute...
Sundstrom asked 17/10, 2019 at 20:18
1
Solved
I have setup Nuxt with TypeScript using the instructions from https://typescript.nuxt.org. The transition was pretty seamless and ok, except that I can't get rid of this error that nuxt:typescript ...
Johnnyjohnnycake asked 20/10, 2019 at 16:0
© 2022 - 2024 — McMap. All rights reserved.