-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
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
Not compatible with babel.config.js #2
Comments
@gnuletik Thanks for the feedback. I am going to look at making a PR to that repo. Do you have an example project using |
Thanks for your time :) Here is an example module.exports = function () {
return {
presets: ['babel-preset-expo'],
plugins: [
['module-resolver', {
alias: {
'~components': './src/components',
'~utils': './src/utils',
},
cwd: 'packagejson',
}],
],
};
}; |
@gnuletik I have opened a PR to find-babel-config. This should fix the issue. Until it gets reviewed/merged I am going to do work on config-support branch for this package and reference my fork. When you have time please let me know if that branch works with your project using the |
Thanks ! How can I test locally ?
eslint does not find the plugin
This also occurs when using the master branch |
Okay, I succeed to install the plugin from the github branch with
I tested the plugin, however, If I disable the cache, babel throws an error and
module.exports = function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: [
['module-resolver', {
alias: {
'~components': './src/components',
'~utils': './src/utils',
},
cwd: 'packagejson',
}],
],
};
};
{
"env": {
"node": true,
"browser": true,
"es6": true
},
"parser": "babel-eslint",
"extends": "airbnb",
"rules": {
"react/jsx-filename-extension": [1, { "extensions": [".js"] }],
"module-resolver/use-alias": 2
},
"settings": {
"import/resolver": {
"babel-module": {}
}
},
"plugins": [
"module-resolver"
]
} |
I'm still getting this error with these versions:
|
@DEfusion Hi! Could you share the repository (if public) or config files that represent the problem. Will make it easier to debug. Thanks |
for still looking the solution. setting the preset only in production env fix my issue
|
@gnuletik - I am wondering if the latest version has fixed this and this issue can be closed |
@HeroProtagonist Thanks for the feedback ! I'm not using this lib anymore so I cannot test it right now. |
I am trying version |
@HeroProtagonist I am trying version 1.3.0 not worked with babel.config.js |
Was it working in 1.2.0 for you? |
@HeroProtagonist No, v1.2.0 not worked |
Hi, thanks for your plugin !
This module is not compatible with babel.config.js file because
find-babel-config
does not.See tleunen/find-babel-config#31
Thanks !
The text was updated successfully, but these errors were encountered: