eslint-plugin-monorepo icon indicating copy to clipboard operation
eslint-plugin-monorepo copied to clipboard

Resolve error: unable to load resolver "node".

Open sebald opened this issue 6 years ago • 5 comments

If eslint-plugin-import is not installed the plugin will throw the following error:

Resolve error: unable to load resolver "node".  monorepo/no-relative-import

when trying to resolve an import statement.

I not sure why installing eslint-plugin-import solves this issue (maybe incompatible with @typescript-eslint?). Is there a better way to fix this?

sebald avatar Jan 31 '19 12:01 sebald

Would you be able to make a minimal repo to reproduce this issue?

azz avatar Jan 31 '19 22:01 azz

Of course! Here you go: https://github.com/sebald/eslint-plugin-monorepo-typescript

I noticed that I haven't mentioned that we are using @typescript-eslint. Sorry about that ☹️ I guess this is an incompatibility with the plugin?

sebald avatar Feb 01 '19 07:02 sebald

Yeah i met the exactly same issue. Using @typescript-eslint as well.

ghost avatar May 01 '19 05:05 ghost

I can confirm this worked properly after adding in the eslint-plugin-import. We had not configured that plugin, but we will use it eventually, so not terrible, but slightly unfortunate.

kwelch avatar Jun 14 '19 16:06 kwelch