codsen / codsen

a monorepo of npm packages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error Unable to resolve path to module 'string-strip-html' import/no-unresolved

numbing opened this issue · comments

string-strip-html

Describe the bug
using eslint i am getting this error only on this package "error Unable to resolve path to module 'string-strip-html' import/no-unresolved"

To Reproduce
Steps to reproduce the behavior:
following is my eslint extends, and when i use eslint seems like it cant find path
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:import/recommended",
"plugin:jsx-a11y/recommended",
"plugin:@typescript-eslint/recommended",
"eslint-config-prettier",
],

hi! Please try:

  1. delete node_modules and if possible, the lockfile (yarn or npm, whichever you use)
  2. npm i or yarn
  3. close and open the VSCode

does it still persist?

Hi, thank you for your response. i just made it works by adding this to the .eslintrc
parserOptions: {
requireConfigFile: false,
babelOptions: {
babelrc: false,
configFile: false,
presets: ["@babel/preset-env"],
},
},

great! closing