mi6 / mi6/ic-ui-kit

Extra attributes from the server class,role

Open
#2,750 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
53
Forks
63
Avg merge
2d 4h
Merged PRs (30d)
15

Description

## Summary of the bug

This may be something to do with next.js and not belong here but its a pretty annoying error that spams the developer console.
![image](https://github.com/user-attachments/assets/854c48cf-8d85-491a-80d2-c470f47d0980)

## 🪜 How to reproduce
Tell us the steps to reproduce the problem:
1. See code below
2. Refresh the page a few times and look at dev console

## 📸 Screenshots or code
![image](https://github.com/user-attachments/assets/326fd199-e85d-495e-9a8e-a62c3e68f97d)

Simplest code that fairly reliably reproduces it, if you remove the SVG it triggers less often but it still triggers
```tsx
export default function PageInner() {
return (
<>






Get started
Get started2



)
}

```

## 🖥 📱 Device
- Type: Desktop
- Device: [Macbook
- OS version: macOS Sonoma
- Browser version: Chrome 130

## 🧐 Expected behaviour
No console error

## 📝 Acceptance Criteria
If relevant, describe in full detail the different interactions and edge cases that the component or patterns needs to fulfil.

*Given*
*When*
*Then*

## Additional info
Tell us anything else useful to help us fix or understand the problem.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported console error with the TSX example in a Next.js environment, using the supplied refresh steps and Chrome. Inspect which component or rendering boundary produces the extra class and role attributes; done means repeated refreshes no longer produce the console error for the example.

Written by the indexing model from the issue text.

Assessment

Tech stack
next.js, react, typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.