aidenybai / million

Optimize React performance and make your React 70% faster in minutes, not months.
https://million.dev
MIT License
16.51k stars 582 forks source link

VSCODE lint not working (looking for your dev server stuck) #1147

Open TheEVolk opened 1 month ago

TheEVolk commented 1 month ago

What version of million are you using?

1.0.11

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

npm

What operating system are you using?

Mac

What browser are you using?

Chrome

Describe the Bug

vite config:

import MillionLint from '@million/lint';
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import tsconfigPaths from 'vite-tsconfig-paths';
import { analyzer } from 'vite-bundle-analyzer';
import svgr from 'vite-plugin-svgr';

export default defineConfig({
  server: {
    port: 3006,
  },
  plugins: [
    MillionLint.vite(),
    react(),
    svgr({
      svgrOptions: {
        dimensions: false,
      },
    }),
    tsconfigPaths(),
    process.env.ANALYZE === '1' && analyzer(),
  ],
});
image

What's the expected result?

working linter

Link to Minimal Reproducible Example

-

Participation

github-actions[bot] commented 1 month ago

Thanks for opening this issue! A maintainer will review it soon.

julesat22 commented 1 month ago

Hi, I'm encountering the same issue with Vite where the lint process gets stuck at the second step, "looking for your dev server."

Million Lint: v1.0.11 Vite: ^5.4.6

Screenshot 2024-10-21 at 3 21 43 PM
RobPruzan commented 2 weeks ago

We have a fix for this and will likely be in the next release