react-router-huge-apps-refactor icon indicating copy to clipboard operation
react-router-huge-apps-refactor copied to clipboard

Can not call class as a function

Open spookshadow opened this issue 9 years ago • 2 comments

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 ?

spookshadow avatar Jun 15 '16 07:06 spookshadow

+1

maxwell-git avatar Sep 16 '16 06:09 maxwell-git

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.

StevenHensgen avatar Oct 24 '16 03:10 StevenHensgen