You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I have the following directory tree in a React application:
OrderPage.js
importsOrderPage.scss
with:I want to create a second folder called
order
and move both files, like the following:What happens is when I move
OrderPage.js
, itsimport
statement changes to reference itself: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.The text was updated successfully, but these errors were encountered: