tleunen / eslint-import-resolver-babel-module

Custom eslint resolve for babel-plugin-module-resolver
https://github.com/tleunen/babel-plugin-module-resolver
MIT License
248 stars 31 forks source link

resolver messes up with @babel/core #87

Closed Nopzen closed 6 years ago

Nopzen commented 6 years ago

Hello 👋

Im running in to this super wired issue where i set

.eslintrc

"settings": {
      "import/resolver": {
        "babel-module": {}
      }
    }

.babelrc

{
  "presets": [
    ["@babel/env", {
      "targets": {
        "node": "8.9"
      }
    }],
    "@babel/flow"
  ],
  "plugins": [
    "@babel/plugin-proposal-class-properties",
    ["module-resolver", {
      "root": ["./src"],
      "alias": {
        "@middlewares": "./src/middlewares",
        "@controllers": "./src/controllers",
        "@models": "./src/models"
      }
    }]
  ]
}

i get following error: Resolve error: Cannot find module 'babel-core see attatched skaermbillede 2018-06-14 kl 21 27 53

I can see that this project is has a peerDepencency on babel-core @v6 so this kinda eliminates me for using it with my @babel/core v7?

Nopzen commented 6 years ago

never mind, i spend 2 hrs googling the wrong things and just found your v5-beta closing

lsps9150414 commented 5 years ago

@Nopzen Could you share more on what you found? I'm getting the same errors.