Node Sass does not yet support Windows 64-bit

I am running protractor UI automation project and try to run test with yarn test and received following build error Module build failed: Error: Node Sass does not yet support your current...

typescript error - cannot find name 'process'

I am setting up a new project with express+ typescript and facing typescript error - cann't find name 'processs' package.json "dependencies": { "express": "^4.16.4", "nodemon": "^1.18.7", ...

Using eslint with typescript - Unable to resolve path to module

I have this import in my file app.spec.ts: import app from './app'; Which causes this Typescript error 2:17 error Unable to resolve path to module './app' import/no-unresolved ./app.ts does...

Why ESLint throws 'no-unused-vars' for TypeScript interface?

So, I have this piece of code in .ts file: import {MicroEventInterface} from '../Interfaces'; export default class MicroEvent implements MicroEventInterface { // code And ESLint throws this...

Prettier and eslint indents not working together

I traying setup my vim based typescript developing environment, but have an issue with indent management. Probably 'eslint' says: indent: Expected indentation of 2 spaces but found 4. after...

Jest encountered an unexpected token (React, Typescript, Babel, Jest & Webpack setup)

I've setup a project using React, Typescript, Babel, Webpack, with Prettier & EsLint. I set the project up from scratch and had everything working nicely. I've just started to use Jest however and...

How to config webpack to transpile files from other lerna packages (ejected from create-react-app)

I'm trying to build a lerna package with a create-react-app package and a simple component library. My component is as follows: import React, { Component } from "react"; import PropTypes from...

"parserOptions.project" has been set for @typescript-eslint/parser

I created a new React Native project with --template typescript I deleted the template directory which came as part of the boilerplate. I then proceeded to add ESLint: module.exports = { parser:...

Failed to load plugin 'react' declared in '.eslintrc.json': Cannot find module 'eslint-plugin-react'

When run locally, it seems to work fine but crashes when its on pipeline EDIT: After removing npx, it produces a different error: I have followed the advice of installing the plugin: npm install...

Typeorm decorator is not a function

I have the following controller that I want to test : class Album { public static getAlbums(): Promise<AlbumModel[]> { return getRepository(AlbumModel).find({ relations: ['pictures'] }); ...

Line 0: Parsing error: Cannot read property 'map' of undefined

Currently starting up the server on my client side, the error above is what I have been getting. I am using Typescript, React, ESlint. I can't seem to go forward since this error has been...

Forced to run npm install before yarn?

Strange one today, wondering if you can help. I recently reformatted my work laptop, and reinstalled all my tooling. Strangely, I'm finding I have to run npm install in full, before I can run yarn...

'React' was used before it was defined

I am working with create-react-app + typescript + eslint application and during build have such error: Line 1:8: 'React' was used before it was defined ...

How to disable warn about some unused params, but keep "@typescript-eslint/no-unused-vars" rule

I want to disable no unused params warning but keep "unused vars" warning. For this code: const Query = objectType({ name: 'Query', definition(t) { t.field('test', { type: 'Test', ...

Error while loading rule '@typescript-eslint/dot-notation'

Today I run eslint,two script "lint-staged": "lint-staged", "eslint": "eslint --ext .tsx,.ts --fix ./src -c .eslintrc.js", When I run npm run eslint // it's ok When I run npm run lint-staged...

Error with my ".eslintrc.js" file - "Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser."

ESLint seems to be unable to parse a ".eslintrc.js" file. Steps to reproduce: I set up a new "hello world" TypeScript project as follows: # Make a new directory for our new project mkdir test # Go...

Parsing error: Cannot read file '.../tsconfig.json'.eslint

The error Parsing error: Cannot read file '.../tsconfig.json'.eslint shows in all .ts files in the src folder including index.ts. I have no idea how to set up configs. The issue just shows a red...

How do I disable There should be no space after '{'.eslintobject-curly-spacing in .eslintrc.js

I am using prettier and I initialized my project with firebase init with the eslint option. But when I save my files, the prettier extension adds spacing in the object curly braces like...

Cannot find module '@typescript-eslint/parser' when using Prettier Eslint

I'm getting the following error from Prettier Eslint Output on VSCode when saving the file. Error: Cannot find module '@typescript-eslint/parser' Require stack: -...

How to solve "Failed to load config "airbnb-typescript" to extend from." on Google Cloud Build?

TL;DR, the error: Step #0: Creating an optimized production build... Step #0: Failed to compile. Step #0: Step #0: Failed to load config "airbnb-typescript" to extend from. Step #0: Referenced...

React app failed to load config "airbnb" in deploying to heroku

I failed to deploy my create react app to heroku. Error log is below. -----> Build Running build (yarn) yarn run v1.22.10 $ react-scripts build Creating an optimized...

ESLint: Running ESLint for one rule with a big rule object

I am trying to run ESLint in my React project for only to check one specific (e.g: max-len) rule like this: eslint . --ext .js,.jsx,.ts,.tsx --rule "{'max-len': ['error', { code: 120,...

Errors with Svelte, TypeScript, ESLint, & Prettier Together

I'm new to Svelte, but I'm liking it so far. I've written a simple tic-tac-toe app using Svelte & TypeScript to practice with it, and now I'm adding the tooling that I prefer. I normally use a...

Failed to load config "prettier" to extend from.(Previous reference of this question didn't help)

npx create-react-app react-dapp npm install ethers hardhat @nomiclabs/hardhat-waffle ethereum-waffle chai @nomiclabs/hardhat-ethers npx hardhat After excuting the above command I faced the...

Resolve Error: typescript with invalid interface loaded as resolver ESLint

I'm having ESLint in my project and getting an error Resolve Error: typescript with invalid interface loaded as resolver : import-no-restricted-paths when I add the rule...

VS Code's Typescript IntelliSense breaks every time I `git commit`

I have a project with several tsconfig.json files in different directories. Usually, VS Code uses each tsconfig.json only for the directory it's in. When I git commit, I use Husky to run Eslint on...

Vulnerabilities of @typescript/eslint-plugin?

There are two packages, TSLint, https://github.com/palantir/tslint and it's overcomer, typescript-eslint, https://github.com/typescript-eslint/typescript-eslint They have some same maintainer....

Unable to resolve path to module 'firebase-admin/app' (ESLint)

I'm was trying to connect to my Firebase app by following the docs, but ESLint is complaining. I have already checked a related question, but the solutions proposed there doesn't seem to work for...

TypeScript: plugin:prettier/recommended for eslint, unable to use the override keyword

Package versions: [email protected] [email protected] [email protected] I've got the following eslintrc, which is just the stock config from NestJS: module.exports = { parser:...

Struggling with TypeScript, React, Eslint and simple Arrow Functions components

I have been struggling all morning with this issue and couldn't find the solution anywhere. I am new to typescript, and I am trying to set it up properly with Eslint and Prettier to ensure the...