Open ryota1116 opened 2 years ago
以下のようなエラーが出たので、eslintをインストールして解決 bc159a5...7b86770
ERROR in ./src/index.js 7:0-24
Module not found: Error: Can't resolve './App' in '/Users/ryota.funasaki/workspace/my_app/stacked_books_ui/src'
resolve './App' in '/Users/ryota.funasaki/workspace/my_app/stacked_books_ui/src'
using description file: /Users/ryota.funasaki/workspace/my_app/stacked_books_ui/package.json (relative path: ./src)
Field 'browser' doesn't contain a valid alias configuration
using description file: /Users/ryota.funasaki/workspace/my_app/stacked_books_ui/package.json (relative path: ./src/App)
no extension
Field 'browser' doesn't contain a valid alias configuration
/Users/ryota.funasaki/workspace/my_app/stacked_books_ui/src/App doesn't exist
.web.mjs
Field 'browser' doesn't contain a valid alias configuration
/Users/ryota.funasaki/workspace/my_app/stacked_books_ui/src/App.web.mjs doesn't exist
.mjs
Field 'browser' doesn't contain a valid alias configuration
/Users/ryota.funasaki/workspace/my_app/stacked_books_ui/src/App.mjs doesn't exist
.web.js
Field 'browser' doesn't contain a valid alias configuration
/Users/ryota.funasaki/workspace/my_app/stacked_books_ui/src/App.web.js doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/Users/ryota.funasaki/workspace/my_app/stacked_books_ui/src/App.js doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/Users/ryota.funasaki/workspace/my_app/stacked_books_ui/src/App.json doesn't exist
.web.jsx
Field 'browser' doesn't contain a valid alias configuration
/Users/ryota.funasaki/workspace/my_app/stacked_books_ui/src/App.web.jsx doesn't exist
.jsx
Field 'browser' doesn't contain a valid alias configuration
/Users/ryota.funasaki/workspace/my_app/stacked_books_ui/src/App.jsx doesn't exist
as directory
/Users/ryota.funasaki/workspace/my_app/stacked_books_ui/src/App doesn't exist
webpack 5.65.0 compiled with 1 error in 1905 ms
Compiling...
Failed to compile.
Failed to load plugin 'flowtype' declared in 'package.json » eslint-config-react-app': Cannot find module 'eslint/use-at-your-own-risk'
Require stack:
- /Users/ryota.funasaki/workspace/my_app/stacked_books_ui/node_modules/eslint-plugin-flowtype/dist/utilities/getBuiltinRule.js
- /Users/ryota.funasaki/workspace/my_app/stacked_books_ui/node_modules/eslint-plugin-flowtype/dist/rules/noUnusedExpressions.js
- /Users/ryota.funasaki/workspace/my_app/stacked_books_ui/node_modules/eslint-plugin-flowtype/dist/index.js
- /Users/ryota.funasaki/workspace/my_app/stacked_books_ui/node_modules/@eslint/eslintrc/dist/eslintrc.cjs
For anyone else with the same issue who is also completely new to React Native, changing "eslint": "8.2.0" as generated by the creation script to "eslint": "7.32.0" and then running "yarn install" seems to fix this issue.
資料
手順
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js:
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
npm audit fix
to fix them, ornpm audit
for details