react-router-huge-apps-refactor
react-router-huge-apps-refactor copied to clipboard
Can not call class as a function
I just clone the code from github then run , browse it in chrome , it still say -- Uncaught TypeError: Cannot call a class as a function Course.js:4 . any idea ?
+1
The issue is the regex is not valid for windows as per this https://github.com/echenley/react-router-huge-apps-refactor/issues/1
If you edit the webpack.config.js file and replace the regex with
var routeComponentRegex = /routes[\/\\]([^\/\\]+[\/\\]?[^\/\\]+).js/
the issue will go away.