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

All Questions

Tagged with
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
1 vote
1 answer
82 views

Issue with using async/await inside a custom ESLint rule's callback function

I'm encountering an issue with integrating async/await operations within a custom ESLint rule. Here's a simplified version of my code: module.exports = { meta: { type: "problem", ...
Rj 45's user avatar
  • 11
0 votes
0 answers
29 views

node's root directory is inside node_modules

I'm not sure I titled this correctly, as I'm not intimately familiar with node. I've noticed two issues, First, the @ alias isn't working as expected. I would think it should be set to the src ...
iamnotpotter's user avatar
0 votes
1 answer
243 views

Unknown option: .module. in Babel and ESLint setup

I'm encountering an issue with my Babel and ESLint setup in a React project. When I run ESLint, I get the following error: Line 0: Parsing error: Unknown option: .module. Check out https://babeljs.io/...
Sushanth's user avatar
1 vote
0 answers
736 views

React Failed to Compile (Linter)

I am having a series of bugs when attempting to "npm run build" my application The first error I received was: Failed to compile. Cannot read property 'value' of null Occurred while linting ...
BennyLearnsCode's user avatar
0 votes
1 answer
86 views

Vue - Eslint Complaining About Missing Variable in Setup Script

Funnily the Vue js documentation is highly suggesting to use the <script setup> syntax of the Composition API, the problem with it is that the documentation is very basic and it interferes with ...
domjanzsoo's user avatar
0 votes
0 answers
283 views

404 This page could not be found. NextJS configuration and page routing problem?

When I npm run dev my page.jsx file isn't being taken as the root file and I'm consequently given the error: 404 This page could not be found. - in the style of a nextJS template setup. and this in ...
MrDingo's user avatar
0 votes
1 answer
103 views

Babel ESLint parser difficulties

Hi I am quite new to ESLint and when I was gaining some headway I encountered issues with the assert when [importing a JSON file. I added the babel ESLint parser but on setting everything up I noticed ...
david borg's user avatar
0 votes
0 answers
342 views

ESLint configuration in ..\package.json is invalid: - Unexpected top-level property "babelOptions"

i am starting new project with purchasing theme. the dependenci provide with theme has older virsion so am trying to update it with npm update and removie some dipendency also. after the removing all ...
Meet's user avatar
  • 9
0 votes
0 answers
855 views

You need to provide a parserOptions.project for Eslint

we are trying to setup Typescript in our JS code base. We are doing this step by step, so we are trying to adapt our eslint configuration to work at the same time for both JS and TS files at the same ...
Antonio Gamiz Delgado's user avatar
1 vote
0 answers
166 views

ESlint cannot find a babel config file with a relative path

In a JavaScript project I have an .eslintrc.yml file side-by-side with a .babelrc.json config file. The babel config is included in the eslint file so: parserOptions: sourceType: module project: ['...
Mike Lischke's user avatar
0 votes
0 answers
706 views

Next.js SWC - ESLint is unable to resolve path to module with aliases

I'm migrating my Next.js project from Babel compiler to Next.js SWC-powered compiler - https://nextjs.org/docs/architecture/nextjs-compiler After the necessary changes the app itself works fine, ...
Kosmetika's user avatar
  • 21.2k
0 votes
1 answer
754 views

How can show warnings in Terminal if Console.log is used in React JS project?

I want to restrict developers to add console.log in their commits so I want to show warning in React JS running terminal if they have used console.log anywhere is the project. I want to show warnings ...
Shehwar's user avatar
  • 87
2 votes
3 answers
15k views

Type error: Cannot find type definition file for '@babel'

I am writing a next project with following package.json. { "name": "dapp-boilerplate", "version": "1.0.0", "main": "index.js", "...
Dapp Composer's user avatar
0 votes
0 answers
13 views

Typescript / Babel / ESLint plugin to properly use variable declared in case blocks [duplicate]

It turns out you can declare a variable in one case block and use it in another! At least in compile time anyway, at runtime it will throw an error or be undefined, depending on the interpreter ...
kajacx's user avatar
  • 12.8k

15 30 50 per page
1
2 3 4 5
11