now throws an error when a style file is not under the rootDir or under our main.js file