tsconfig Questions
1
I've recently tried to migrate my Webpack configuration written in JavaScript to TypeScript. Unfortunately I struggle a lot with this. I have written a minimal configuration file for webpack to sta...
Wolframite asked 14/9, 2020 at 14:14
2
Solved
In angular 13 app with Typescript 4.5.2 , I am getting an error in the tsconfig.json file . "noImplicitOverride" is set to true and gives "Unknown compiler option 'noImplicitOverride...
Catamenia asked 18/11, 2021 at 16:57
1
From the documentation it's said that include specifies an array of filenames or patterns to include in the program (i.e. in the compilation process). Similarly, rootDir is the path to the folder w...
Hying asked 9/7, 2022 at 9:28
3
While trying to compile my typescript source code, I see that the compiler is also trying to compile the types under my node_modules folder .
I am using typescript 2.6.1 and my tsconfig file is as ...
Sardius asked 15/11, 2017 at 9:7
9
Solved
Is it possible to override which tsconfig.json ts-node uses when called from mocha?
My main tsconfig.json contains "module": "es2015", but I want to use "module": "commonjs" for ts-node only.
I t...
1
Solved
Well, the title is pretty auto-explainable: I have set my tsconfig paths so that I can use @configs/logger instead of ../../configs/logger everytime in my APP files. But if I try to use those path ...
Coccidioidomycosis asked 13/7, 2022 at 5:1
4
I am trying to write a nodejs command line app with Typescript and I have the following tsconfig file:
{
"compilerOptions": {
"module": "commonjs",
"outDir": "dist"
},
"include": ["src/*.ts"]
}
...
Threequarter asked 17/12, 2017 at 14:35
1
I have a large project with many files.
Now I want to use strictTemplates, so I added the following lines in:
tsconfig.json
...
"angularCompilerOptions": {
"fullTemplateTypeCheck...
1
when npm build process is running below error 'Router' cannot be used as a JSX component.
Its instance type 'BrowserRouter' is not a valid JSX element.
is occurred. what could be the reason?
I am u...
Chiquia asked 21/6, 2022 at 20:24
1
I'm working on a @nrwl/nx monorepo. I want to import the folders inside the project src by the absolute paths. I tried specifying the baseUrl but didn't work. The only solution worked is, adding th...
Lipkin asked 15/1, 2022 at 3:4
1
Solved
I stumbled upon a problem with absolute imports. The repository is publicly available here: https://github.com/repetitioestmaterstudiorum/ts-boiler
When I'm trying to import a file with absolute pa...
Incandescent asked 13/6, 2022 at 9:8
2
Currently, I am trying the new extends feature in the tsconfig.json that allows developers to have a base tsconfig.json, that other modules can extend / modify.
It is working, although not as expe...
Natascha asked 12/12, 2016 at 13:27
3
Solved
I'm running this task:
{
"taskName": "tsc watch",
"command": "tsc -w",
"type": "shell",
"problemMatcher": "$tsc-watch"
}
with this tsconfig:
{
"compileOnSave": true,
"files": [
"src/in...
Gene asked 23/7, 2017 at 16:41
2
trying to compose typescript project. here is my project structure.
rootdir
|
|-----src
| |----server.ts
| |----other folders
|-----node_modules
|-----tsconfig.json
|-----package.json
tscon...
Chef asked 12/4, 2022 at 16:51
3
I have the following file structure
|__ app1/
| |__ tsconfig.json
|__ utilities/
| |__ files.ts
|__ base-tsconfig.json
In base-tsconfig.json I have set the paths property as following
"compiler...
Breeding asked 29/6, 2018 at 9:52
4
Solved
Is there a way to prevent WebPack's building process from failing after typescript compiler start yelling on unresolved variables that actually are already configured on webpack's ProvidePlugin con...
Fullrigged asked 22/6, 2016 at 16:46
3
I am trying to use in my Angular 5 application a .js file which is avaible just in JavaScript language, so I can't find an alternative in TypeScript.
The problem is that I have added the "allowJs"...
Incursion asked 21/1, 2018 at 21:35
3
Solved
I have this in one of my components:
public booleanSubject: BehaviorSubject<boolean> = new BehaviorSubject(false);
When I add "strictFunctionTypes": true to the tsconfig.json file ...
Deuno asked 19/3, 2021 at 15:16
3
Solved
I have a hypothetical Typescript file in my project (simplified example).
Utils.ts:
import * as HelperFromNodeModules from 'helper-from-node-modules';
class Utils {
static foo() {
return Helpe...
Girosol asked 29/4, 2018 at 20:27
4
Solved
How can I use an inner config.json in my Typescript project?
For clarity:
I have a root /config.json as following:
{
"compilerOptions": {
"module": "commonjs",
"target": "es2017",
"inlineSou...
Transgress asked 8/10, 2018 at 20:52
1
Solved
The setting I am referencing is shown in the snippet bellow
{
"compilerOptions": {
"resolveJsonModule": true,
}
}
I don't really understand why TS language engineers would ...
Axiomatic asked 13/2, 2022 at 7:7
9
I have a problem with typescript compilation. Has anybody else received this error?
node_modules/@types/node/index.d.ts(20,1): error TS1084: Invalid
'reference' directive syntax.
tsconfig.json:
{...
Leprechaun asked 3/9, 2020 at 9:12
0
Basically, my project structure looks EXACTLY like this official documentation page: https://www.typescriptlang.org/docs/handbook/project-references.html#an-example-project
/
├── src/
│ ├── convert...
Brickwork asked 26/1, 2022 at 19:17
2
TL;DR: How do you include a tsconfig.json file in Visual Studio 2017 and still have JavaScript intellisense work like it does by default, giving code hints both for your own code and 3rd-party libr...
Polder asked 28/3, 2017 at 21:6
0
I have a typescript project that uses commonjs modules, I use ts-node to run it, and tsconfig-paths to resolve tsconfig.compilerOptions.paths at runtime.
now I want my project to migrate to use es ...
Fervency asked 17/1, 2022 at 12:58
© 2022 - 2024 — McMap. All rights reserved.