What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
import GBAEmulator, { GbaContext } from 'react-gbajs'
Full code
./node_modules/.bin/eslint .
What did you expect to happen?
Should raise no error. This package is present in the node_modules.
An important note:
Since it's only for the browser, it has the field browser instead of main in its package.json (link). I made it following the NPM documentation.
Despite that, I noticed that by adding the field main in its package.json, the error suppress - but it doesn't look correct.
What actually happened? Please copy-paste the actual, raw output from ESLint.
/Users/macabeus/ApenasMeu/klo-gba.js/brush/src/components/Emulator/index.js
2:41 error Unable to resolve path to module 'react-gbajs' import/no-unresolved
/Users/macabeus/ApenasMeu/klo-gba.js/brush/src/components/KloGbaSidebar/Hacks/index.js
7:28 error Unable to resolve path to module 'react-gbajs' import/no-unresolved
/Users/macabeus/ApenasMeu/klo-gba.js/brush/src/hooks/useGbaSaveRestoreState.js
2:28 error Unable to resolve path to module 'react-gbajs' import/no-unresolved
/Users/macabeus/ApenasMeu/klo-gba.js/brush/src/index.js
8:29 error Unable to resolve path to module 'react-gbajs' import/no-unresolved
/Users/macabeus/ApenasMeu/klo-gba.js/brush/src/providers/VisionProvider.js
4:28 error Unable to resolve path to module 'react-gbajs' import/no-unresolved
✖ 5 problems (5 errors, 0 warnings)
✨ Done in 4.73s.
Steps to reproduce this issue:
- Clone this repository: https://github.com/macabeus/klo-gba.js
- Run
yarn on its root
cd brush
yarn run lint
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
Full code
./node_modules/.bin/eslint .What did you expect to happen?
Should raise no error. This package is present in the
node_modules.An important note:
Since it's only for the browser, it has the field
browserinstead ofmainin itspackage.json(link). I made it following the NPM documentation.Despite that, I noticed that by adding the field
mainin itspackage.json, the error suppress - but it doesn't look correct.What actually happened? Please copy-paste the actual, raw output from ESLint.
Steps to reproduce this issue:
yarnon its rootcd brushyarn run lint