Resolve error: webpack with invalid interface loaded as resolver after Expo upgrade to SDK 45

Viewed 610

enter image description here

Since upgrading Expo SDK from 43 to 45, I am getting these ESLint errors in every file on the first import line. The project is able to run though.

I've tried adding the eslint-import-resolver-typescript package, without luck.

The error keeps coming up in every file. Any ideas?

3 Answers

It would be helpful to be able to see the contents of your package.json and eslintrc.js files.

But as per this issue, maybe try installing eslint-import-resolver-webpack?

don't install packages separately, as above you said that you added a eslint-import-resolver-typescript you have to try deleting a node-modules folder and reinstall it again.

hope error will be solved..

I needed to add plugins, such as import and react.

plugins: [
  ...
  'import',
  'react',
],

Update August `22

Also, after receiving this error another time, I needed to remove the @expo/webpack-config package since using Expo bare workflow and instead install the eslint-import-resolver-webpack package as devDependency.

Related