Closed pdhung197 closed 5 years ago
Hello @pdhung197 , this issue is most likely related to your webpack config file, you may need to change it to load the correct presets for babel. take a look at this topic on stackOverflow :) https://stackoverflow.com/questions/33469929/you-may-need-an-appropriate-loader-to-handle-this-file-type-with-webpack-and-b
I use Geonames for my React project, my package.json dependencies:
And I import to my jsx files:
import Geonames from 'geonames.js';
But I get error:How can I fix it ?