Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
22 views

Error loading rule @typescript-eslint/no-implied-eval lint-staged eslint --fix

I can not run eslint --fix with lint-staged I'm trying to implement lint-staged husky. I already installed husky, lint-staged and relate packges. "scripts": { "dev": "...
Lxbster's user avatar
  • 51
0 votes
1 answer
101 views

Next.js / ESLint – "Parsing error: Cannot find module 'next/babel'"

Every time I create a Next.js app with: `npx create-next-app@latest` ESLint immediately starts flashing warnings in all my .js files saying "Parsing error: Cannot find module 'next/babel' ...
Henrik Angelstig's user avatar
0 votes
0 answers
30 views

Next.js - no warning/error by ESLint when no width/height/fill is provided as props

To start with, I encountered a run time error when using Next.js Image Component. MyComponent.tsx import Image from "next/image"; ... <Image src={"/assets/live_view....
ERTY's user avatar
  • 33
0 votes
0 answers
19 views

Vscode does not format the content of nextjs into multiple lines

vscode does not format the content of nextjs into multiple lines I expected <Image alt="" src="/img/logo.svg" width="30" height="30" className="d-...
aboutjquery's user avatar
0 votes
1 answer
47 views

On creating Next.js build getting warning for no-unused-vars with configured eslint

Warning: 'myparam' is defined but never used. no-unused-vars I am getting above warning in my file below I have a store implenting of zustand, however I think the warning is not related to zustand ...
Rajat Jaswal's user avatar
0 votes
0 answers
61 views

Unsafe assignment of an `any` in NextAuth(options: AuthOptions)

I am getting a typescript/eslint error for the following piece of code in Next-Auth (4.24.6). How do I resolve this issue? Unsafe assignment of an `any` value.eslint@typescript-eslint/no-unsafe-...
MKapp's user avatar
  • 422
1 vote
1 answer
416 views

Eslint error with formatter in Next.js project

When trying to run eslint in the Next.js project I've got an error There was a problem loading formatter: /Users/naya/Desktop/work/ftl/ftl-web-fe/node_modules/eslint/lib/cli-engine/formatters/stylish ...
nayaCirdan's user avatar
0 votes
0 answers
800 views

How to extend next/core-web-vitals on eslint.config.js?

In my nextJs project my eslint can't load my .eslintrc.json, reasearching the eslint output terminal, I found eslint is loking for a eslint.config.js file, I want to move the .eslintrc.json config to ...
elVengador's user avatar
1 vote
0 answers
94 views

Why does typescript infer the type of SVG imports as "any" in NextJs 14

I'm working on a NextJs 14 project using the app router, typescript and eslint. In my app folder I have an assets folder with some jpg and SVG images. Im importing these images into an index.ts file ...
Russellg's user avatar
  • 111
0 votes
0 answers
40 views

SyntaxError: Cannot use import statement outside a module on importing MuiOtpInput

When deploying my Next.js project on Vercel, I encountered a SyntaxError: Cannot use import statement outside a module when trying to import { MuiOtpInput } from "mui-one-time-password-input&...
Ricky Shrestha's user avatar
1 vote
1 answer
162 views

How to show all files errors in react app with eslint by one line code in scripts in package.json?

I want it to show all errors for all files in react/next app in command line with eslint when i write (for example) "npm run errors" or "npm run lint". I tried searching for eslint ...
Ali Shariatian's user avatar
0 votes
0 answers
348 views

Issue: Replace `··` with `↹`eslintprettier/prettier

I'm getting an error: Replace ·· with ↹eslintprettier/prettier, but only in some cases, like here: export const getTotalHabitableArea = ( checklist: FormattedChecklistType, isFullChecklist: ...
Andrik Dizhak's user avatar
2 votes
2 answers
344 views

Next.js server actions - eslint errors

Getting eslint errors writing a simple server component with server action: // /app/search/page.tsx export default function Search() { async function updateResults(formData: FormData) { "...
user19448827's user avatar
1 vote
0 answers
199 views

ESLint: Failed to load plugin 'jsx-a11y' declared in '.eslintrc » eslint-config-next/core-web-vitals

When I upgraded to Next 14.1.0 from 13.3.1 I started getting a warning from yarn next build saying ESLint: Failed to load plugin 'jsx-a11y' declared in '.eslintrc. This is the beginning of my eslintrc ...
thegreenedition's user avatar
0 votes
0 answers
80 views

Typescript eslint does not recognize object in array

i got some problem with typescript or eslint (im new in eslint). types.ts export type TSettingsIputsState = { personal: { label: string; name: keyof TApiResponseProfile; value: string; ...
Bl1nk's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
10