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

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

Open
1 task
Trung15010802 opened this issue Jun 20, 2024 · 3 comments
Open
1 task

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

Trung15010802 opened this issue Jun 20, 2024 · 3 comments

Comments

@Trung15010802
Copy link

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

  • I am willing to submit a pull request for this issue.
Copy link

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

@sgf-HonestAnt
Copy link

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
Copy link
Author

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

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

2 participants