create-react-app-example icon indicating copy to clipboard operation
create-react-app-example copied to clipboard

yarn start error: node_modules/@babel/runtime/helpers/interopRequireDefault.js which falls outside of the project src/ directory

Open Hzrr97 opened this issue 1 year ago • 1 comments

Module not found: Error: You attempted to import /Users/huqinglong/work/react-native/react-native-elements-test/node_modules/@babel/runtime/helpers/interopRequireDefault.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported. You can either move it inside src/, or add a symlink to it from project's node_modules/. ERROR in ./src/App.tsx 5:29-171 Module not found: Error: You attempted to import /Users/huqinglong/work/react-native/react-native-elements-test/node_modules/@babel/runtime/helpers/interopRequireDefault.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported. You can either move it inside src/, or add a symlink to it from project's node_modules/.

ERROR in ./src/index.tsx 5:29-171 Module not found: Error: You attempted to import /Users/huqinglong/work/react-native/react-native-elements-test/node_modules/@babel/runtime/helpers/interopRequireDefault.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported. You can either move it inside src/, or add a symlink to it from project's node_modules/.

Hzrr97 avatar Dec 12 '24 09:12 Hzrr97

{ "name": "Infinite Clicker", "short_name": "Clicker", "start_url": ".", "display": "standalone", "background_color": "#111111", "theme_color": "#111111", "orientation": "portrait", "icons": [ { "src": "/icon.png", "sizes": "192x192", "type": "image/png" }, { "src": "/icon.png", "sizes": "512x512", "type": "image/png" } ] }

jonas30072 avatar Aug 22 '25 13:08 jonas30072