danielrob / danielrob/aperitif-editor

[Bug] Imports - resolved paths can be incorrect

Open
#11 0 comments 0 reactions 0 assignees View on GitHub
bug enhancement
Dominant language
JavaScript
Stars
20
Forks
0
PR merge metrics
No merged PRs in 30d

Description

When generating imports the path walker/resolver needs to cater for when the depth of the source file is e.g. deeper along the same tree as the current file, or vice versa.

See the FIXME in https://github.com/danielrob/aperitif-editor/blob/master/src/containers/EditorContainer/selectors/getCurrentFileImports.js

Contributor guide

No contributing guide indexed for this repository

Research direction

Open src/containers/EditorContainer/selectors/getCurrentFileImports.js and start at the referenced FIXME, tracing the path walker/resolver for source and current files at different depths in the same tree. Done means generated import paths remain correct when either file is deeper than the other.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.