-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
fix(react): install rollup package when generating lib #16373
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
@@ -30,6 +30,7 @@ export async function addRollupBuildTarget( | |||
host, | |||
{}, | |||
{ | |||
'@nx/rollup': nxVersion, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The weird thing is that on line 23 of the same file we're doing ensurePackage
for the @nx/rollup
package, and it still doesn't get installed :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it doesn't get added to the workspace, i think it needs to be in the init generator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to fix this in @nx/rollup:init
generator. The bug is that @nx/rollup
package is only added when compiler is swc. It should be added for all cases.
a07e176
to
f692c3f
Compare
f692c3f
to
c3342bd
Compare
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
The
@nrwl/rollup
package is not getting installed when generating a buildable react library that uses the@nrwl/rollup:rollup
executor, which results in the following error:Expected Behavior
@nrwl/rollup
package should get installed.