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(core): cannot read property kind of undefined #21715

Conversation

maxence-lefebvre
Copy link
Contributor

Current Behavior

When running nx g mv ..., if an updated files exports don't include a moduleSpecifier (e.g export { MyClass };), the generator fails with Cannot read property "kind" of undefined.

Expected Behavior

The generator should ignore those exports, as there is no need to update the module specifier if it doesn't exist.

Related Issue(s)

I didn't open an issue.

I updated the tests, made sure the updated snapshot was correct and tried locally in my own workspace.

@maxence-lefebvre maxence-lefebvre requested a review from a team as a code owner February 8, 2024 15:12
Copy link

vercel bot commented Feb 8, 2024

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

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Mar 22, 2024 10:47pm

Copy link

nx-cloud bot commented Feb 8, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 8876bbd. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

Copy link
Collaborator

@FrozenPandaz FrozenPandaz left a comment

Choose a reason for hiding this comment

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

Thank you for your contributions! LGTM 🎉

Just rebased it and am letting CI run.

@FrozenPandaz FrozenPandaz force-pushed the fix/cannot-read-property-kind-of-undefined branch from 3bf8fca to 8876bbd Compare March 22, 2024 22:46
@FrozenPandaz FrozenPandaz enabled auto-merge (squash) March 25, 2024 14:42
@FrozenPandaz FrozenPandaz merged commit 85aa577 into nrwl:master Mar 25, 2024
6 checks passed
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 Mar 31, 2024
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.

2 participants