Skip to main content

All Questions

Tagged with
0 votes
0 answers
22 views

TS2307: Cannot find module 'portal/PortalApp' or its corresponding type declarations

I am getting an error TS2307: Cannot find module 'portal/PortalApp' or its corresponding type declarations in the WebPack, React, TypeScript, Micro frontend project. In the localhost server I am ...
Noventiq's user avatar
-1 votes
0 answers
35 views

WebPack React Eslint error in JSON: Expected an assignment or function call and instead saw an expression @typescript-eslint/no-unused-expressions

Webpack React TypeScript Eslint in JSON file error: Expected an assignment or function call and instead saw an expression @typescript-eslint/no-unused-expressions I am getting an error when I try to ...
Noventiq's user avatar
1 vote
1 answer
767 views

ESLINT 9: Cannot read config file: eslint.config.mjs. Error: end of the stream or a document separator is expected

generated eslint.config.mjs: import globals from "globals"; import pluginJs from "@eslint/js"; import tseslint from "typescript-eslint"; export ...
AlexUA's user avatar
  • 707
0 votes
0 answers
30 views

Electron Forge: show ESLint problems in terminal

I have an electron-forge project. I want eslint problems to show in the terminal via webpack. I added the ESLintPlugin, but did not manage to configure it to show the problems in the terminal. The ...
Liran H's user avatar
  • 10.3k
0 votes
0 answers
30 views

eslint not recognize conditional exports (aka package exports)

I have a library that offers conditional exports: node_modules/myLib/package.json: { ... "exports": { "ComponentA": "../dist/ConponentA.js", "ComponentB"...
DFOXpro's user avatar
  • 353
1 vote
1 answer
107 views

Is it possible to auto-import files with webpack or React so that I don't need to `import` every time

I very often need to write: <div style={{display:'flex'}}> ... </div> However, I'd ideally just write: <Row> ... </Row> But I don't want to need to import Row from './Row'...
libby's user avatar
  • 634
0 votes
2 answers
351 views

Unable to Enforce Restricted Imports in TypeScript Project Despite Configuring baseUrl and resolve

I'm trying to enforce restricted imports in my TypeScript project using ESLint, but I'm encountering issues with the configuration. I've set the baseUrl in my tsconfig.json to "src" and ...
Web Obsseser's user avatar
1 vote
0 answers
257 views

How to provide import aliases in eslint new flat config?

How do you provide a list of aliases in the new flat eslint config? I have tried the following: export default [ ... { settings: { "import/resolver": { alias: { ...
Peter S.'s user avatar
  • 367
1 vote
0 answers
209 views

ESLint Error: Cannot find module 'resolve/sync'

I have created my own package for personal use, and I am connecting it to the project. Everything works perfectly, except for two things that I can't figure out. Here are the dependencies in my ...
RedCoub's user avatar
  • 23
1 vote
1 answer
137 views

I wanted to rewrite my project in typescript, but there is a problem in the App.tsx file

I have ESLint errors that occur in the App.js file, which is created automatically when compiling my App.tsx, which contains a simple component. How to solve this problem? There is an error example: [...
2022.A's user avatar
  • 31
0 votes
1 answer
633 views

Module parse failed: Unexpected token - When using custom NPM module

I have a Vue 2 project and it shares assets with another, so originally I had them in the same repo and imported them via webpack which worked nicely. Now I want to import them via NPM using GIT ...
bldcaveman's user avatar
0 votes
1 answer
23 views

Why isn't eslint processing the converted code from webpack loader but scanning the source files?

I used create-react-app to create the project, then 'npm run eject' the project and added my custom webpack loader in webpack.config.js. In myLoader.js, I have seen aaa converted to bbb, but eslint ...
hewc's user avatar
  • 119
2 votes
0 answers
478 views

Can't seem to exclude node_modules from eslint

I've been trying to resurrect the build for an older bit of web code that's been left fallow for a while, and that involved upgrading some of the packages, including eslint. However, the build now ...
Bob Tway's user avatar
  • 9,523
1 vote
0 answers
69 views

Typescript compile warning but error occurred when I deploy vercel

I am updating existing website with react + typescript, webpack. I don't know well about webpack. When I run npm start this warning occured "@typescript-eslint/no-explicit-any". This website ...
cryptofun's user avatar
0 votes
0 answers
404 views

Why am I getting a 'Failed to load config react-app' error when using ESLint with Webpack and vanilla JavaScript?

I use Webpack and Eslint in my project without using React just vanilla JS and I keep getting this problem: ERROR in [eslint] Failed to load config "react-app" to extend from. Referenced ...
Ekaterina's user avatar

15 30 50 per page
1
2 3 4 5
17