babel-plugin-module-resolver
babel-plugin-module-resolver copied to clipboard
Getting Started failed to get started - didn't list all the necessary steps
I did everything in the Getting Started guide in my fresh react-js app
It failed: Module not found: Can't resolve '_include/file.js' in mymain.js`
my .babelrc
{ "plugins": [ ["module-resolver", { "root": ["./src"], "alias": { "test": "./test", "underscore": "lodash", "_include": "./src/include" } }] ] }
It just doesn't work, it is very disappointing that the Getting Started from the official source did not specify all the required steps. Googling for third party tutorials provides a lot of very different, very complicated setups a lot of which might not even be required: