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

Absolute paths inside react project #16

Open
Assem-Hafez opened this issue Mar 22, 2022 · 0 comments
Open

Absolute paths inside react project #16

Assem-Hafez opened this issue Mar 22, 2022 · 0 comments

Comments

@Assem-Hafez
Copy link

Assem-Hafez commented Mar 22, 2022

I was trying to use the lib with my react project and this is sample of the output i got.

Failed to resolve "utils/functions" in "D:/work/src/views/Topology/ServiceGraphBeta/AccountResources/SelectedResourceSideDrawer/RITab/RITab.styles.js". Fix it or add to 'missing'.
Failed to resolve "components/EmptyCardMessage/EmptyCardMessage" in "D:/work/src/views/Topology/ServiceGraphBeta/AccountResources/SelectedResourceSideDrawer/SLOTab/SLOTab.js". Fix it or add to 'missing'.
Failed to resolve "components/PageContentLoading/PageContentLoading" in "D:/work/src/views/Topology/ServiceGraphBeta/AccountResources/SelectedResourceSideDrawer/SLOTab/SLOTab.js". Fix it or add to 'missing'.
Failed to resolve "components/PageContentError/PageContentError" in "D:/work/src/views/Topology/ServiceGraphBeta/AccountResources/SelectedResourceSideDrawer/SLOTab/SLOTab.js". Fix it or add to 'missing'.
Failed to resolve "views/ServiceLevelObjectives/ServiceLevelObjectives.utils" in "D:/work/src/views/Topology/ServiceGraphBeta/AccountResources/SelectedResourceSideDrawer/SLOTab/SLOTab.js". Fix it or add to 'missing'.

I think the reason is that we are using absolute imports in our project as we have the src folder configured as the root directory for absolute imports. using jsconfig.json
image

is there any configuration that can help us bypass this issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant