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.
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.
Thanks for the suggestion. Will update.