We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I found error
node_modules/babel-plugin-module-resolver/lib/index.js:67 pluginOpts.root = pluginOpts.root.reduce(function (resolvedDirs, dirPath) {
Here's my .babelrc config
.babelrc
{ "presets": [ "next/babel", "latest", "stage-2" ], "plugins": [ ["module-resolver", { "root": "./src", "alias": { "@": "./" } }] ] }
The text was updated successfully, but these errors were encountered:
ah, my bad. missing [] on my root key
[]
Sorry, something went wrong.
feat: Convert root to array if root is a string (#153)
2bcea0c
Closes #152.
To save everyone else the click, the readme documents the following way to configure the plugin:
["module-resolver", { "root": ["./src"], "alias": { "@": "./" } }]
No branches or pull requests
I found error
Here's my
.babelrc
configThe text was updated successfully, but these errors were encountered: