Closed jmcmullen closed 6 years ago
it shouldn't happen since it's just a vue
file. but if you are extracting router options from a dynamic path make it as specific as possible so webpack can figure out exactly the files you are looking after, otherwise, it will try every possible path. One simple solution is putting those files in specific folders. Adding the .js
extension at the end of the required path should also work
Cheers!
Changing it to const router = require(`./routes/${currentRegion}/index.js`);
fixed the problem.
When I extend the router through my nuxt.config.js like this:
I get the following error: