question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

vite build failed with vite-plugin-eslint 1.8.0

See original GitHub issue

failure in npm run build (vite build)

[commonjs--resolver] Cannot read config file: ***********************/node_modules/@css-render/vue3-ssr/.eslintrc.js
Error: Cannot find module '@rushstack/eslint-config/patch/modern-module-resolution'

even after @rushstack/eslint-config installed, the error would be

[commonjs--resolver] Failed to load config "@css-render/eslint-config/base" to extend from.
Referenced from:***********************/node_modules/@css-render/vue3-ssr/.eslintrc.js

rolling back to 1.7.0 would just work fine.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
Aslam97commented, Aug 12, 2022

I have same issue. fix by replacing include value

plugins: [
   eslint({ include: '/.(js|vue)$/' })
]
0reactions
tfonfaracommented, Aug 17, 2022

I can confirm the bugfix 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

vite-plugin-eslint - npm
Will cause the module build to fail if there are any warnings, based on emitWarning . failOnError. Type: boolean; Default: true. Will cause...
Read more >
gxmari007/vite-plugin-eslint - GitHub
Will cause the module build to fail if there are any warnings, based on emitWarning . failOnError. Type: boolean; Default: true. Will cause...
Read more >
Vite-plugin-eslint - npm.io
Will cause the module build to fail if there are any warnings, based on emitWarning . failOnError. Type: boolean; Default: true. Will cause...
Read more >
Storybook vite failed to build with ChakraUI / React 18
I'm creating a UI library with Vite and Storybook. Sadly, the storybook build is broken. In dev mode, i have some error during...
Read more >
[eslint] failed to load config "@vue/prettier" to extend from.
My assumption is that "no-layout-rules" means that the build is missing dependencies. In my case, after removing "@vue/prettier" from my config NPM right...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found