Skip to content

Resolve moved local node imports#270

Open
SeanCordovaGit wants to merge 1 commit into
flydelabs:mainfrom
SeanCordovaGit:fix-moved-local-imports
Open

Resolve moved local node imports#270
SeanCordovaGit wants to merge 1 commit into
flydelabs:mainfrom
SeanCordovaGit:fix-moved-local-imports

Conversation

@SeanCordovaGit
Copy link
Copy Markdown

Summary

  • Adds a local-file fallback for stale relative imports when a referenced node file has moved.
  • Searches under the current flow directory by filename and verifies the candidate contains the requested node id before using it.
  • Covers the behavior with a temp-directory regression test for moved local visual nodes.

Bounty

/claim #112

Fixes #112

Validation

  • corepack pnpm --dir loader exec mocha src/resolver/server/findReferencedNodeServer.spec.ts --require ts-node/register --no-timeout --grep "moved local visual"
  • corepack pnpm --dir loader exec tsc -p .

Notes

The full existing findReferencedNodeServer.spec.ts suite has unrelated Windows fixture-path failures in this checkout because several tests resolve fixtures under loader/src/fixture while the fixtures live under loader/fixture. The new regression test uses temporary files and passes independently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Broken imports after moving files

1 participant