Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having Internal Error after configure million into vite.config #1153

Open
flyingduck92 opened this issue Nov 17, 2024 · 5 comments
Open

Having Internal Error after configure million into vite.config #1153

flyingduck92 opened this issue Nov 17, 2024 · 5 comments

Comments

@flyingduck92
Copy link

flyingduck92 commented Nov 17, 2024

What version of million are you using?

1.0.12

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

None

What package manager are you using?

npm install @million/lint@latest

What operating system are you using?

Windows

What browser are you using?

Chrome

Describe the Bug

I am confused after configuring millions into vite.config.js

import MillionLint from "@million/lint"
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
 
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [MillionLint.vite(), react(),],
})

I got this internal error when do npm run dev
internal_error

When I open devtools I got this ERR_CONNECTION_REFUSED
err_connection_refused

What's the expected result?

It supposed to be run like this image below
image

I managed to run it, after I reinstall using npm i million

and configure vite.config.js using below configuration

import million from 'million/compiler'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
 
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [million.vite({ auto: true }), react(),],
})

The app can be run again using npm run dev

I have no idea why its didn't work when I following the instructions on the official docs.

Copy link

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

@nsass24
Copy link

nsass24 commented Nov 20, 2024

Running into the same issue on the same set up

@michael1997
Copy link

I have this issue too

@ZakharovVladyslav
Copy link

Have the same issue

@vidongls
Copy link

have same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants