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

[Bug Report]: v2 Unnecessary panic #2036

Open
ErKeLost opened this issue Dec 31, 2024 · 1 comment
Open

[Bug Report]: v2 Unnecessary panic #2036

ErKeLost opened this issue Dec 31, 2024 · 1 comment
Labels
bug Something isn't working v2.0 v2.0 version

Comments

@ErKeLost
Copy link
Member

Steps to reproduce

Introducing a non-existent file or address triggers panic, which seems to be a common problem

import { createApp } from 'vue'
import App from './App.vue'
// import 'uno.css'  unresolve file 

createApp(App).mount('#app')
  • cause error with import 'uno.css'
image

Reproduce link

No response

What is actually happening?

error

System Info

mac
@ErKeLost ErKeLost added v2.0 v2.0 version bug Something isn't working labels Dec 31, 2024
@ErKeLost
Copy link
Member Author

ErKeLost commented Feb 7, 2025

This problem should belong to the same category as the error handling problem

  1. Create a basic project
  2. pnpm install && pnpm dev
  3. After starting the development server, modifying the configuration file triggers a restart. For example, we trigger a syntax error at this time
import { defineConfig, loadEnv } from "@farmfe/core"
import react from "@farmfe/plugin-react";

export default defineConfig({
  plugins: [
    react(),
  ],
});

change to

import { defineConfig, loadEnv } from "@farmfe/core"
import react from "@farmfe/plugin-react";

export default defineConfig({
  plugins:  // catch a syntax error
    react(),
  ],
});

Panic will be triggered at this time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v2.0 v2.0 version
Projects
None yet
Development

No branches or pull requests

1 participant