DEV Community

Discussion on: Don't use create-react-app: How you can set up your own reactjs boilerplate.

Collapse
 
joejavacavalier2001 profile image
roger.k.trussell@gmail.com • Edited

In the webpack.config.js file, in the resolve object, you might want to include "extensions: ['.js', '.jsx']" after defining "alias". I had a hard time getting webpack to find and transpile my jsx files until I did that.

You need to define those extensions IN ADDITION to defining rules to deal with those extensions.

Thanks though for teaching use another way besides CRA. CRA was adding dependencies that would make npm freak out sometimes.

Collapse
 
nikhilkumaran profile image
Nikhil Kumaran S

Thanks for the suggestion. Will update.