It may not be due to this package, but I'll just explain my issue:
After adding flow-router to my react project, I suddenly started getting an error where my components were unable to locate their scss files in the same directory.
For example, I have the filetree - Navbar/{Navbar.jsx, Navbar.scss, Navbutton/Navbutton.jsx}
Then I get the error "Error: Cannot find module './Navbar.scss'" and it seems as though it's an NPM issue, where it's checking NPM for './Navbar.scss'.
// Custom Dependencies
import s from './Navbar.scss';
import NavButton from './NavButton/NavButton';
NavButton works properly still.
Again, this issue only arose when I started using Flow-Router and was not an issue before then.
Would appreciate any tips/pointers!
Edit: More info:
The issue happens the moment I go from (in client/main.jsx)
It may not be due to this package, but I'll just explain my issue:
After adding flow-router to my react project, I suddenly started getting an error where my components were unable to locate their scss files in the same directory.
For example, I have the filetree - Navbar/{Navbar.jsx, Navbar.scss, Navbutton/Navbutton.jsx}
Then I get the error "Error: Cannot find module './Navbar.scss'" and it seems as though it's an NPM issue, where it's checking NPM for './Navbar.scss'.
NavButton works properly still.
Again, this issue only arose when I started using Flow-Router and was not an issue before then.
Would appreciate any tips/pointers!
Edit: More info: The issue happens the moment I go from (in client/main.jsx)
to (in lib/router.js)