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

Incorrectly changing import extension #8

Open
mmakarios opened this issue Oct 19, 2017 · 1 comment
Open

Incorrectly changing import extension #8

mmakarios opened this issue Oct 19, 2017 · 1 comment
Labels

Comments

@mmakarios
Copy link

I have the following directory tree in a React application:

- checkout
  - OrderPage.js
  - OrderPage.scss

OrderPage.js imports OrderPage.scss with:

import './OrderPage.scss';

I want to create a second folder called order and move both files, like the following:

- checkout
- order
  - OrderPage.js
  - OrderPage.scss

What happens is when I move OrderPage.js, its import statement changes to reference itself:

import './OrderPage.js';

It doesn't matter if I move the SCSS file first and then the JS, the result is the same.
The solution to my case is relatively simple: just change the import extension to .scss again. But I think it is worth reporting it anyway.

@asvetliakov
Copy link
Owner

Thanks for report! will try to look when i'll have some free time available.

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

No branches or pull requests

2 participants