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

fix(js): esbuild should not throw when a project depends on non-js dependencies #19057

Conversation

AgentEnder
Copy link
Member

Current Behavior

If a community plugin adds external nodes with a type outside of "npm" the esbuild executor tries to add them as external nodes to package.json. This results in build time failures.

Expected Behavior

We validate that the nodes represent workspace projects before we attempt to add them to the package.json

Related Issue(s)

Fixes #19043

@vercel
Copy link

vercel bot commented Sep 7, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Sep 7, 2023 8:49pm

@AgentEnder AgentEnder force-pushed the fix/js/dont-throw-if-depending-on-monodon-deps branch from 4020a55 to e297be2 Compare September 7, 2023 18:52
function isWorkspaceProject(
node: ProjectGraphProjectNode | ProjectGraphExternalNode,
graph: ProjectGraph
): node is ProjectGraphExternalNode {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is incorrect.

Suggested change
): node is ProjectGraphExternalNode {
): node is ProjectGraphProjectNode {

@AgentEnder AgentEnder force-pushed the fix/js/dont-throw-if-depending-on-monodon-deps branch from e297be2 to 75659e5 Compare September 7, 2023 20:48
@FrozenPandaz FrozenPandaz enabled auto-merge (squash) September 7, 2023 21:24
@FrozenPandaz FrozenPandaz merged commit ca3fd3c into nrwl:master Sep 7, 2023
15 checks passed
@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Undefined targets block in getOutputsForTargetAndConfiguration
3 participants