Hi I have the same issue as this one ('Module not found' babel error after installing axios), I tried all the suggested solutions but the error still persists:
Failed to compile ./src/apis/youtube.js Module not found: Can't resolve '/Users/Prodigy/code/PierceF/udemy/videos/node_modules/react-scripts/node_modules/babel-loader/lib/index.js' in '/Users/Prodigy/code/PierceF/udemy/videos'
code in my youtube.js:
import axios from 'axios';
const KEY = 'XXXXXXXXXXXXXXXXXXXXXXXXX'
export default axios.create({
baseURL: 'https://www.googleapis.com/youtube/v3',
params: {
part: 'snippet',
maxResults: 5,
key: KEY
}
});
the app runs when I delete this entire code in youtube.js though...
I'm going to list the entire flow and every little bit of gory detail for the benefit of people who have just started on their React journey: