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

Build fails due to missing @iconify/react dependency after upgrade to 3.16.0 #1719

Closed
ekdegerman opened this issue Dec 4, 2023 · 8 comments · Fixed by #1757
Closed

Build fails due to missing @iconify/react dependency after upgrade to 3.16.0 #1719

ekdegerman opened this issue Dec 4, 2023 · 8 comments · Fixed by #1757
Labels
status:fixed Issue fixed in current or prior release. type:bug
Milestone

Comments

@ekdegerman
Copy link

Category

[ ] Enhancement

[x] Bug

[ ] Question

Version

3.16.0

Expected / Desired Behavior / Question

gulp bundle --ship completes with no issues, as it does on 3.15.0

Observed Behavior

There's a module not found error in webpack:
image
@iconify/react is listed under devDependencies rather than dependencies in package.json

Steps to Reproduce

  1. Create a new spfx component for a web part using react as the framework
  2. Install version 3.16.0 of the library
  3. Add e.g. a ListItemAttachments component
  4. run gulp bundle --ship
@ghost
Copy link

ghost commented Dec 4, 2023

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

@ghost ghost added the Needs: Triage 🔍 label Dec 4, 2023
Copy link

github-actions bot commented Dec 4, 2023

Thank you for submitting your first issue to this project.

@wuxiaojun514
Copy link
Contributor

I have the same issue when I upgraded to 3.16.

I installed "@iconify/react" as devDependencies, then it works.
You can try with
npm i -DE @iconify/react

@ekdegerman
Copy link
Author

I have the same issue when I upgraded to 3.16.

I installed "@iconify/react" as devDependencies, then it works. You can try with npm i -DE @iconify/react

Yes, but if it is required for consumers I don't think it should be a devDependency in the first place... 🤔 The dependency and its version should be managed by the project that decides if it is needed rather than have all consumers having to keep track of that. Besides, it seems to be used as a regular dependency in the HoverReactionBarControl, which I guess could lead to issues in the finished build as well if that is used.

joelfmrodrigues added a commit that referenced this issue Dec 21, 2023
@joelfmrodrigues joelfmrodrigues added type:bug status:fixed-next-drop Issue will be fixed in upcoming release. and removed Needs: Triage 🔍 labels Dec 21, 2023
@joelfmrodrigues
Copy link
Collaborator

@ekdegerman thanks for reporting this. The PR from @GuidoZam to fix the issue has just been merged and a new beta release should be published in a few minutes.

@joelfmrodrigues joelfmrodrigues added this to the 3.17.0 milestone Dec 21, 2023
@jeffseiffert
Copy link

I have the same issue when I upgraded to 3.16.

I installed "@iconify/react" as devDependencies, then it works. You can try with npm i -DE @iconify/react

I tried this then get the following error message.
image

@jtlivio
Copy link

jtlivio commented Jan 12, 2024

Hello, i have the same issue with version 1.18.2, @joelfmrodrigues the PR was published? if yes problem remains in this version

Thanks

@joelfmrodrigues
Copy link
Collaborator

@jtlivio it's not published yet. There was a minor release to try to fix another issue, but didn't include this PR. I will start discussions for a major release to address this issue

@joelfmrodrigues joelfmrodrigues mentioned this issue Feb 5, 2024
@joelfmrodrigues joelfmrodrigues added status:fixed Issue fixed in current or prior release. and removed status:fixed-next-drop Issue will be fixed in upcoming release. labels Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:fixed Issue fixed in current or prior release. type:bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants