tsconfig Questions
1
How can I prevent a generic type from taking any as its type argument? If my generic argument is constrained by using the extends keyword, it feels weird that it can be replaced by any.
As fa...
Stoops asked 19/4, 2021 at 16:1
0
In theory, you should be able to do this by using references to make a top-level tsconfig file that includes paths to all of the different typescript projects you want to check, setting "compo...
Ocko asked 14/4, 2021 at 0:16
1
I keep getting an error with making new vue pages for my project. The error is saying:
Vetur can't find tsconfig.json or jsconfig.json in /xxxx/xxxxxx.
What would be the solution to fix this prob...
0
I am working on a project which was not typesafe earlier, but now i want to make it typesafe using Typescript . Since the project is very big so i would be doing it in parts . So there are many sub...
Liederman asked 28/3, 2021 at 11:3
1
Solved
Compiling an angular application (v10) fails with this error.
An unhandled exception occurred: tsconfig.json:14:5 - error TS5023: Unknown compiler option 'strictTemplates'.
14 "strictTemplate...
Hayse asked 11/3, 2021 at 11:33
2
Solved
I have a file.ts file which does not contain a component/service/etc but just a data type.
When I try to compile my program I get this error: Module build
failed: Error: my path\File.ts is miss...
8
Solved
This question has appeared similarly in many places where the solution is to simply add
import { } from '@types/googlemaps';
which worked as a solution in past versions of angular. The issue app...
Frenchpolish asked 3/8, 2018 at 17:25
4
I've started an angular 7 project and I'm trying to configure the "path mapping" on angular.json to change my import way from this:
import { environment } from '../../../environments/environment';...
Thumbsdown asked 22/2, 2019 at 16:33
1
Solved
I am trying to fetch data with with Angular 11 as observable and I am having issues using async or json pipe in a lazy loaded component/module. I get the error in the console.
The module:
import { ...
Dogface asked 19/2, 2021 at 10:31
4
Solved
The project was generated via angular CLI. I have the following folder structure:
I want to define a path to a bar folder in tsconfig.app.json and import Car to Garage.
My tsconfig.app.json:
{...
Douglas asked 9/10, 2017 at 4:31
1
I'm currently working node-express with typescript, I'm using absolute import path through tsconfig.json file's baseUrl and paths, and run server with ts-node and using tsconfig-paths module to ts-...
Turbot asked 29/1, 2019 at 10:51
2
vscode is somehow not honoring my tsconfig.json (for a couple of weeks now, it has been different. eiter my bad or vscode update...)
{
"compileOnSave": false,
"compilerOptions":...
Worl asked 8/11, 2020 at 11:39
1
Solved
I'm working on a create-react-app with TypeScript and it auto-generates a tsconfig in my frontend folder with "include": "/src" every time I run the app, even if I delete the fi...
Imprecise asked 8/1, 2021 at 21:47
3
Solved
**Trying to set the path inside tsconfig.json for compiler to treat src as baseUrl in react typescript project**
{
"compilerOptions": {
"target": "es5",
"bas...
Conformance asked 29/10, 2020 at 14:38
0
In the following SO comment, which has 19 upvotes, the user says the following with regards to Typescript declaration files and the use of typeRoots:
@Tom It looks for .d.ts files in the same plac...
Veroniqueverras asked 23/12, 2020 at 4:54
5
Solved
I am using Visual Studio Code and have a fairly common project structure:
├── client/
│ ├── tsconfig.json
├── shared/
├── server/
│ ├── tsconfig.json
├── project.json
The two tsconfig files have...
Ancalin asked 1/6, 2016 at 22:42
1
Solved
I am trying to use tensorflow/tfjs (TF) in a web-worker in an angular project.
Creating a web-worker using the ng generate worker command works just fine.
Importing TF in a component is fine too.
H...
Flawed asked 30/10, 2020 at 10:5
3
Solved
I'm struggling to get proper coverage with nyc/istanbul for my typescript/mocha/gulp project. I've tried a number of approaches, some of them seem to be unable to use source maps and other fails du...
Permute asked 22/6, 2017 at 14:14
0
I have a tsconfig file and I want to disable noUnusedLocals and noUnusedParameters for specific files only.
I have function in Migration file called up. I'm not using it anywhere in the code. Seque...
Charr asked 9/11, 2020 at 13:39
1
I'm migrating my project from JavaScript to Typescript.
I want to have the default tsconfig.json to show stricter warnings in VS Code, but have an alternate tsconfig.json with more lenient tsc comp...
Metcalf asked 2/11, 2020 at 8:45
6
I have a small Typescript project of about 10 ts files. I want to compile all my files into es5 and into a single es5 file called all.js.
Currently, with my tsconfig.json set up as
{
"compilerO...
Wanton asked 7/9, 2016 at 2:42
1
Solved
In this example in Typescript playground I'm trying to use an nonexistent type inside a namespace and I get an error:
This is expected.
But in my local dev environment, Typescript is basically ac...
Nonsmoker asked 24/9, 2020 at 8:15
0
I am developing a CLI using node, typescript and other packages. The idea is simple, the CLI gives you an initial structure for your node projects (javascript or typescript)
Well, while testing, I ...
Lots asked 16/9, 2020 at 19:59
1
Solved
I'm having trouble with my Cypress tests for my (Typescript) application recognizing types for package I've installed. Here is my top-level directory structure:
cypress
node_modules
src
My cypress...
Emotion asked 4/9, 2020 at 14:16
1
Solved
Other related questions are just asked about JavaScript, but I know the Chai team already provided 'chai/register-expect', etc..
I was migrating from Jest to Chai, and when I used Jest it was done ...
Edora asked 5/5, 2020 at 21:20
© 2022 - 2024 — McMap. All rights reserved.