React 17: better-docs compatible? - reactjs

I tried to install better-docs but received the following error. Seems like the better-docs is not compatible with the react v.17? How do you guys work with JSDoc with React 17? Any advice helps, thank you.
The below is the error report.
.npm/eresolve-report.txt
npm resolution error report
2021-11-22T05:56:23.456Z
While resolving: react-tsx#0.1.0
Found: react#17.0.2
node_modules/react
react#"^17.0.2" from the root project
Could not resolve dependency:
peer react#"^16.0.0" from better-docs#2.3.2
node_modules/better-docs
better-docs#"*" from the root project
Fix the upstream dependency conflict, or retry
this command with --force, or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.
Raw JSON explanation object:
{
"code": "ERESOLVE",
"current": {
"name": "react",
"version": "17.0.2",
"whileInstalling": {
"name": "react-tsx",
"version": "0.1.0",
"path": "/Users/Projects/salon/react-tsx"
},
"location": "node_modules/react",
"isWorkspace": false,
"dependents": [
{
"type": "prod",
"name": "react",
"spec": "^17.0.2",
"from": {
"location": "/Users/Projects/salon/react-tsx"
}
}
]
},
"currentEdge": {
"type": "prod",
"name": "react",
"spec": "^17.0.2",
"from": {
"location": "/Users/Projects/salon/react-tsx"
}
},
"edge": {
"type": "peer",
"name": "react",
"spec": "^16.0.0",
"error": "INVALID",
"from": {
"name": "better-docs",
"version": "2.3.2",
"whileInstalling": {
"name": "react-tsx",
"version": "0.1.0",
"path": "/Users/Projects/salon/react-tsx"
},
"location": "node_modules/better-docs",
"isWorkspace": false,
"dependents": [
{
"type": "prod",
"name": "better-docs",
"spec": "*",
"from": {
"location": "/Users/Projects/salon/react-tsx"
}
}
]
}
},
"strictPeerDeps": false,
"force": false
}
package.json
{
"name": "react-tsx",
"version": "0.1.0",
"private": true,
"dependencies": {
"#date-io/date-fns": "^1.3.13",
"#emotion/react": "^11.5.0",
"#emotion/styled": "^11.3.0",
"#material-ui/core": "^4.12.3",
"#material-ui/icons": "^4.11.2",
"#material-ui/pickers": "^3.3.10",
"#mui/icons-material": "^5.1.1",
"#mui/lab": "^5.0.0-alpha.54",
"#mui/material": "^5.1.0",
"#testing-library/jest-dom": "^5.11.4",
"#testing-library/react": "^11.1.0",
"#testing-library/user-event": "^12.1.10",
"#types/jest": "^26.0.15",
"#types/node": "^12.0.0",
"#types/react": "^17.0.0",
"#types/react-dom": "^17.0.0",
"#types/react-router-dom": "^5.3.2",
"date-fns": "^2.25.0",
"jsdoc": "^3.6.7",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-google-login": "^5.2.2",
"react-router-dom": "^6.0.1",
"react-scripts": "4.0.3",
"web-vitals": "^1.0.1"
},
"scripts": {
"start": "react-scripts start",
"build": "tsc",
"test": "react-scripts test",
"eject": "react-scripts eject",
"docs": "jsdoc -c jsdoc.conf.json"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"typescript": "^4.4.4"
}
}

Related

eslint failed to load config "react-app" to extend from

I had a strange issue with eslint before and I had to uninstall node_modules and do npm install and since I did that I have been getting new errors I've never had before within my code. One error that I can't quite figure out how to fix is this.
ERROR in [eslint] Failed to load config "react-app" to extend from.
Referenced from: C:\Users\Justi\Downloads\package.json
Here's my package.json folder:
{
"name": "gingerrmarket",
"version": "0.1.0",
"private": true,
"dependencies": {
"#emotion/react": "^11.5.0",
"#emotion/styled": "^11.3.0",
"#fortawesome/free-solid-svg-icons": "^5.15.4",
"#fortawesome/react-fontawesome": "^0.1.16",
"#material-ui/core": "^4.12.3",
"#material-ui/icons": "^4.11.2",
"#mui/icons-material": "^5.0.4",
"#mui/material": "^5.1.0",
"#testing-library/jest-dom": "^5.14.1",
"#testing-library/react": "^11.2.7",
"#testing-library/user-event": "^12.8.3",
"firebase": "^9.4.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-feather": "^2.0.9",
"react-router-dom": "^6.0.0",
"react-scripts": "^5.0.1",
"web-vitals": "^1.1.2"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
And here's my eslint parser file in babel (I'm not sure if it'll be any use.)
"name": "#babel/eslint-parser",
"version": "7.18.2",
"description": "ESLint parser that allows for linting of experimental syntax transformed by Babel",
"author": "The Babel Team (https://babel.dev/team)",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/babel/babel.git",
"directory": "eslint/babel-eslint-parser"
},
"publishConfig": {
"access": "public"
},
"bugs": {
"url": "https://github.com/babel/babel/issues"
},
"homepage": "https://babel.dev/",
"engines": {
"node": "^10.13.0 || ^12.13.0 || >=14.0.0"
},
"main": "./lib/index.cjs",
"type": "commonjs",
"exports": {
".": "./lib/index.cjs",
"./experimental-worker": "./lib/experimental-worker.cjs",
"./package.json": "./package.json"
},
"peerDependencies": {
"#babel/core": ">=7.11.0",
"eslint": "^7.5.0 || ^8.0.0"
},
"dependencies": {
"eslint-scope": "^5.1.1",
"eslint-visitor-keys": "^2.1.0",
"semver": "^6.3.0"
},
"devDependencies": {
"#babel/core": "^7.18.2",
"dedent": "^0.7.0",
"eslint": "^7.27.0",
"eslint-8": "npm:eslint#^8.0.0"
}
}
Does anyone have any suggestions? Please help.
Have you tried running npm i eslint-config-react-app -D yet?
For this all that was needed was
"eslintConfig": { "extends": [ "react-app", "react-app/jest" ] },
In package.json

Cannot read property 'name' of undefined Occurred while linting in React

I have this really weird "bug" I guess you can call it with eslint when I try and run yarn lint
$ tsc --noEmit && eslint src/**/*.ts{,x}
For some reason it fails with
Oops! Something went wrong! :(
ESLint: 7.32.0
TypeError: Cannot read property 'name' of undefined
Occurred while linting /Users/Reynaldo/Documents/cafemat/src/hooks/useFirebase.ts:13
at ExpressionStatement (/Users/Reynaldo/Documents/cafemat/node_modules/eslint-plugin-storybook/lib/rules/prefer-csf.js:18:44)
at /Users/Reynaldo/Documents/cafemat/node_modules/eslint/lib/linter/safe-emitter.js:45:58
at Array.forEach (<anonymous>)
at Object.emit (/Users/Reynaldo/Documents/cafemat/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (/Users/Reynaldo/Documents/cafemat/node_modules/eslint/lib/linter/node-event-generator.js:293:26)
at NodeEventGenerator.applySelectors (/Users/Reynaldo/Documents/cafemat/node_modules/eslint/lib/linter/node-event-generator.js:322:22)
at NodeEventGenerator.enterNode (/Users/Reynaldo/Documents/cafemat/node_modules/eslint/lib/linter/node-event-generator.js:336:14)
at CodePathAnalyzer.enterNode (/Users/Reynaldo/Documents/cafemat/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:711:23)
at /Users/Reynaldo/Documents/cafemat/node_modules/eslint/lib/linter/linter.js:960:32
at Array.forEach (<anonymous>)
error Command failed with exit code 2.
Also, if I have my useFirebase.ts file focused (in view) on VSCode and run yarn start I get the error:
Failed to compile
Cannot read property 'name' of undefined
Occurred while linting /Users/Reynaldo/Documents/cafemat/src/hooks/useFirebase.ts:13
This error occurred during the build time and cannot be dismissed.
Yet if I put in focus (into view) any other file on VSCode and run yarn start the project compiles and runs without problems.
Is this a weird bug or am I doing something wrong? Here are the files:
useFirebase.ts
import { useEffect, useState } from "react";
import { FirebaseApp, deleteApp, getApp, initializeApp } from "firebase/app";
import { appName, firebaseConfig } from "../config/firebaseConfig";
function useFirebase(): FirebaseApp | null {
const [firebaseApp, setFirebaseApp] = useState<FirebaseApp | null>(null);
useEffect(() => {
let app: FirebaseApp;
try {
app = getApp(appName);
}
catch (err) {
app = initializeApp(firebaseConfig, appName);
}
setFirebaseApp(app);
return () => {
deleteApp(app);
};
}, []);
return firebaseApp;
}
export default useFirebase;
package.json
{
"name": "xxxxxxx",
"version": "0.1.0",
"private": true,
"dependencies": {
"#reach/router": "1.3.4",
"firebase": "9.1.3",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-helmet-async": "1.1.2",
"react-scripts": "4.0.3",
"web-vitals": "1.0.1"
},
"scripts": {
"start": "craco start",
"build": "craco build",
"test": "craco test",
"eject": "react-scripts eject",
"format": "prettier --write 'src/**/*.ts{,x}'",
"lint": "tsc --noEmit && eslint src/**/*.ts{,x}",
"cypress:open": "cypress open",
"storybook": "start-storybook -p 6006 -s public",
"build-storybook": "build-storybook -s public",
"serve": "serve -s build"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
],
"overrides": [
{
"files": [
"**/*.stories.*"
],
"rules": {
"import/no-anonymous-default-export": "off"
}
}
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"#craco/craco": "^6.2.0",
"#storybook/addon-actions": "^6.3.2",
"#storybook/addon-essentials": "^6.3.2",
"#storybook/addon-links": "^6.3.2",
"#storybook/node-logger": "^6.3.2",
"#storybook/preset-create-react-app": "^3.1.7",
"#storybook/react": "^6.3.2",
"#tailwindcss/postcss7-compat": "^2.2.4",
"#testing-library/jest-dom": "^5.14.1",
"#testing-library/react": "^11.1.0",
"#testing-library/user-event": "^12.1.10",
"#types/jest": "^26.0.15",
"#types/node": "^12.0.0",
"#types/reach__router": "^1.3.9",
"#types/react": "^17.0.13",
"#types/react-dom": "^17.0.0",
"#types/react-helmet": "^6.1.2",
"#typescript-eslint/eslint-plugin": "^4.28.1",
"#typescript-eslint/parser": "^4.28.1",
"autoprefixer": "^9",
"babel-loader": "8.1.0",
"cypress": "^7.6.0",
"eslint": "^7.2.0",
"eslint-config-airbnb": "18.2.1",
"eslint-config-airbnb-typescript": "^12.3.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-chai-friendly": "^0.7.1",
"eslint-plugin-cypress": "^2.11.3",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^24.3.6",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-react": "^7.21.5",
"eslint-plugin-react-hooks": "^1.7.0",
"eslint-plugin-storybook": "^0.1.1",
"postcss": "^7",
"postcss-cli": "^8.3.1",
"prettier": "^2.3.2",
"tailwindcss": "npm:#tailwindcss/postcss7-compat",
"typescript": "^4.1.2"
}
}
.eslintrc
{
"extends": [
"airbnb-typescript",
"airbnb/hooks",
"plugin:#typescript-eslint/recommended",
"plugin:jest/recommended",
"plugin:prettier/recommended",
"plugin:cypress/recommended",
"plugin:chai-friendly/recommended"
],
"plugins": [
"react",
"#typescript-eslint",
"jest",
"cypress",
"chai-friendly",
"storybook"
],
"env": {
"browser": true,
"es6": true,
"jest": true,
"cypress/globals": true
},
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "#typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.json"
},
"rules": {
"linebreak-style": "off",
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
],
"cypress/no-assigning-return-values": "error",
"cypress/no-unnecessary-waiting": "error",
"cypress/assertion-before-screenshot": "warn",
"cypress/no-force": "warn",
"cypress/no-async-tests": "error",
"no-unused-expressions": 0,
"chai-friendly/no-unused-expressions": 2,
"storybook/prefer-csf": "error"
}
}
.eslintignore
# Temporary lint ignore because storybook example files
# generated files that go against specified ESLint rules.
src/stories
# ESLinting error taken off by ignoring config files
# https://stackoverflow.com/questions/58510287/parseroptions-project-has-been-set-for-typescript-eslint-parser/64488474#64488474
tailwind.config.js
postcss.config.js
craco.config.js
Ok so I solved the problem. For some reason the prefer-csf rule of eslint-plugin-storybook causes this error. Once I commented out "storybook/prefer-csf": "error" from the .eslintrc the yarn lint command runs without problems. If anyone has a clue as to why this solves the error it would be greatly appreciated if you could explain. Thanks! :D

cannot start a react project with yarn start

I create react app with create-react-app and when I use yarn start the following error happens:
Here is the package.json of the project folder:
{
"name": "letmeask",
"version": "0.1.0",
"private": true,
"dependencies": {
"#testing-library/jest-dom": "^5.11.4",
"#testing-library/react": "^11.1.0",
"#testing-library/user-event": "^12.1.10",
"#types/jest": "^26.0.15",
"#types/node": "^12.0.0",
"#types/react": "^17.0.0",
"#types/react-dom": "^17.0.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "4.0.3",
"typescript": "^4.1.2",
"web-vitals": "^1.0.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
and here is the package.json from upath folder:
{
"name": "upath",
"description": "A proxy to `path`, replacing `\\` with `/` for all results & new methods to normalize & join keeping leading `./` and add, change, default, trim file extensions.",
"version": "1.2.0",
"homepage": "http://github.com/anodynos/upath/",
"author": {
"name": "Angelos Pikoulas",
"email": "agelos.pikoulas#gmail.com"
},
"license": "MIT",
"keywords": [
"path",
"unix",
"windows",
"extension",
"file extension",
"replace extension",
"change extension",
"trim extension",
"add extension",
"default extension"
],
"repository": {
"type": "git",
"url": "git://github.com/anodynos/upath"
},
"bugs": {
"url": "http://github.com/anodynos/upath/issues",
"email": "agelos.pikoulas#gmail.com"
},
"main": "./build/code/upath.js",
"types": "./upath.d.ts",
"preferGlobal": false,
"scripts": {
"test": "grunt",
"build": "grunt lib"
},
"directories": {
"doc": "./doc",
"dist": "./build"
},
"engines": {
"node": ">=4",
"yarn": "*"
},
"devDependencies": {
"chai": "~4.0.2",
"coffee-script": "1.12.6",
"grunt": "0.4.5",
"grunt-contrib-watch": "^1.1.0",
"grunt-urequire": "0.7.x",
"lodash": "^4.17.15",
"mocha": "~3.4.2",
"uberscore": "0.0.19",
"underscore.string": "^3.3.5",
"urequire": "0.7.0-beta.33",
"urequire-ab-specrunner": "^0.2.5",
"urequire-rc-inject-version": "^0.1.6"
}
}
I've tried yarn install, yarn update, npm install, npm upgrade, vscode reinstall, but nothing works.
Try deleting your yarn.lock and run yarn install again. Also, running npm install when you're using yarn isn't recommended. It may cause issues if you mix two package managers in one project.
If you did run npm install and ended up creating a package-lock.json, please delete that as well and stick to yarn commands for this project in the future.

Npm #babel/types error in react typescript

I am getting the error below for types.
I tried npm install #types/babel_types but that didn't fix it.
How do I go about fixing it? I am trying to compile a react project for electron.
Here is my package.json
{
"name": "abc",
"description": "abc",
"author": "abc",
"version": "1.4.11",
"main": "public/electron.ts",
"resolutions": {
"apollo-client": "2.6.3"
},
"dependencies": {
"#aws-amplify/cli": "^4.46.1",
"#types/react": "^16.9.43",
"#types/react-dom": "^16.9.8",
"#types/react-modal": "^3.12.0",
"#types/react-router-dom": "^5.1.7",
"#types/socket.io-client": "^1.4.36",
"#types/yup": "^0.29.11",
"aws-amplify": "^3.3.26",
"aws-amplify-react": "^4.2.30",
"aws-appsync": "^4.0.3",
"date-fns": "^2.22.1",
"electron-is-dev": "^2.0.0",
"electron-log": "^4.3.5",
"electron-updater": "^4.3.9",
"graphql-tag": "^2.12.4",
"node-sass": "^4.14.1",
"node-thermal-printer": "^4.1.2",
"npm": "^6.14.7",
"react": "^16.13.1",
"react-apollo-hooks": "^0.4.5",
"react-async": "^10.0.1",
"react-axios": "^2.0.5",
"react-dates": "^21.8.0",
"react-dom": "^16.13.1",
"react-load-script": "0.0.6",
"react-modal": "^3.12.1",
"react-router": "^5.2.0",
"react-router-dom": "^5.2.0",
"react-script-hook": "^1.4.1",
"react-scripts": "^4.0.3",
"react-toastify": "^7.0.4",
"reshake": "^1.2.3",
"save": "^2.4.0",
"socket.io": "^4.1.2",
"socket.io-client": "^4.1.2",
"start": "^5.1.0",
"styled-components": "^5.3.0",
"typescript": "^3.9.7",
"yup": "^0.32.9"
},
"scripts": {
"start": "react-scripts start",
"start:web": "react-scripts start",
"build:web": "PUBLIC_URL=./ react-scripts build",
"start:desktop": "npm run build:desktop && electron ./build/electron.js",
"build:desktop": "tsc -p electron/tsconfig.json",
"test": "react-scripts test",
"eject": "react-scripts eject",
"release": "electron-builder -mwl -p 'onTagOrDraft'",
"release:windows": "electron-builder -w -p 'onTagOrDraft'",
"electron-dev": "concurrently \"BROWSER=none npm run start\" \"wait-on http://localhost:3000 && electron .\""
},
"eslintConfig": {
"extends": "react-app"
},
"devDependencies": {
"concurrently": "^5.3.0",
"electron": "^11.4.1",
"electron-builder": "^22.11.7",
"wait-on": "^5.2.1"
},
"build": {
"appId": "com.tabin.desktop",
"copyright": "Copyright 2021 Zeal Private Ltd",
"publish": {
"provider": "github"
},
"mac": {
"category": "public.app-category.business",
"icon": "build/icon.icns"
},
"win": {
"icon": "build/icon.ico",
"certificateFile": "private/electron-tabin-desktop-development.p12",
"certificatePassword": "",
"verifyUpdateCodeSignature": false
},
"linux": {
"category": "Office",
"icon": "build/icon.png"
}
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
Here is my tsconfig.json
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react",
"noFallthroughCasesInSwitch": true
},
"include": [
"src",
"electron/**/*"
]
}
Please tell me how to get rid of this error. Do I need to create some .d.ts files?
Thanks,
First, try this solution.
Edit your TypeScript Config file (tsconfig.json) and add a new key-value pair as
"noImplicitAny": false
If this things doesn't work then here are two other solutions
When a module is not yours - try to install types from #types:
npm install -D #types/module-name
If the above install errors - try changing import statements to require:
// import * as yourModuleName from 'module-name';
const yourModuleName = require('module-name');

heroku Failed to load config "airbnb" to extend from. Referenced from: /app/.eslintrc.json

I'm trying to deploy an app to Heroku, it's working perfectly in my local. But in Heroku show me: =>
Failed to compile
Failed to load config "airbnb" to extend from.
Referenced from: /app/.eslintrc.json
This error occurred during the build time and cannot be dismissed.
I try to fix it by installing airbn in the Heroku console. But didn't work. I appreciate if you could help me.
Here is my package.json file =>
{
"name": "calculator",
"version": "0.1.0",
"private": true,
"dependencies": {
"#testing-library/jest-dom": "^5.12.0",
"#testing-library/react": "^11.2.6",
"#testing-library/user-event": "^12.8.3",
"big.js": "^6.1.1",
"prop-types": "^15.7.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "4.0.3",
"web-vitals": "^1.1.2"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"#babel/core": "^7.14.0",
"#babel/eslint-parser": "^7.13.14",
"#babel/plugin-syntax-jsx": "^7.12.13",
"#babel/preset-react": "^7.13.13",
"eslint": "^7.25.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.23.2",
"eslint-plugin-react-hooks": "^4.2.0",
"stylelint": "^13.13.1",
"stylelint-config-standard": "^21.0.0",
"stylelint-csstree-validator": "^1.9.0",
"stylelint-scss": "^3.19.0"
}
}
and here my eslint configuration =>
{
"env": {
"browser": true,
"es6": true,
"jest": true
},
"parser": "#babel/eslint-parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"extends": ["airbnb", "plugin:react/recommended"],
"plugins": ["react"],
"rules": {
"react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx"] }],
"react/react-in-jsx-scope": "off",
"import/no-unresolved": "off",
"no-shadow": "off"
},
"ignorePatterns": [
"dist/",
"build/"
]
}
I had to follow these steps and that fixed it.
1| heroku create $APP_NAME --buildpack mars/create-react-app
2| git push heroku HEAD:master
Replace $APP_NAME with the name of your unique app.
here is the documentation link:
github.com/mars/create-react-app-buildpack
I was experiencing the same issues and finally what worked was to move "eslint-config-airbnb" from "devDependencies" to "dependencies" as indicated by eamanola.
Also, my context was a bit different, as I was running a create-react-app and express app.

Resources