aidenybai / million

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

Component missing after installing million.js on my React App #1060

Open Trung15010802 opened 2 weeks ago

Trung15010802 commented 2 weeks ago

What version of million are you using?

0.0.16

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

None

What package manager are you using?

npn

What operating system are you using?

Windows 11

What browser are you using?

Chrome

Describe the Bug

Component missing after installing million.js on my React App

image

What's the expected result?

image

Link to Minimal Reproducible Example

https://stackoverflow.com/questions/78547561/component-missing-after-installing-million-js-on-my-react-app

Participation

github-actions[bot] commented 2 weeks ago

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

sgf-HonestAnt commented 1 week ago

This code is from the udemy course React - The Complete Guide 2024 (incl. Next.js, Redux)(https://www.udemy.com/course/react-the-complete-guide-incl-redux/) - it's how I discovered Million.js too!

In section 13, the instructor introduces Million.js and points out that there is a reference error caused by the icons in the buttons that are vanishing for you. He fixes this by adding //million-ignore directly above the default export on the icon pages.

Looking at Million.js docs, I can see they've changed since the video was made. I'm new to Million.js so I don't know if //million-ignore is still usable. But have you tried excluding the icons in your build options as is referenced on Million.js docs?

Trung15010802 commented 1 week ago

This code is from the udemy course React - The Complete Guide 2024 (incl. Next.js, Redux)(https://www.udemy.com/course/react-the-complete-guide-incl-redux/) - it's how I discovered Million.js too!

In section 13, the instructor introduces Million.js and points out that there is a reference error caused by the icons in the buttons that are vanishing for you. He fixes this by adding //million-ignore directly above the default export on the icon pages.

Looking at Million.js docs, I can see they've changed since the video was made. I'm new to Million.js so I don't know if //million-ignore is still usable. But have you tried excluding the icons in your build options as is referenced on Million.js docs?

I see no error so i don't put //million-ignore on my components. But if i do, i still facing the issue