How to remove ESlint error no-unresolved from importing 'react'

前端 未结 4 2165
春和景丽
春和景丽 2021-02-14 01:05

no-unresolved https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-unresolved.md

After installing eslint-import-resolver-webpack

4条回答
  •  独厮守ぢ
    2021-02-14 01:13

    Try

    resolve: {
        modules: [path.resolve(__dirname, 'public/src'), 'node_modules', path.resolve('node_modules')],
    }
    

提交回复
热议问题