The module `./errors` could not be found
See original GitHub issueUsing Autodux with a React Native app created by Expo and Yarn throws:
Unable to resolve module `./errors` from `/Users/jan/Startup/react-native/os-gastro-admin/node_modules/autodux/dist/index.js`: The module `./errors` could not be found from `/Users/jan/Startup/react-native/os-gastro-admin/node_modules/autodux/dist/index.js`. Indeed, none of these files exist:
* `/Users/jan/Startup/react-native/os-gastro-admin/node_modules/autodux/dist/errors(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)`
* `/Users/jan/Startup/react-native/os-gastro-admin/node_modules/autodux/dist/errors/index(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)`
ABI32_0_0RCTFatal
__37-[ABI32_0_0RCTCxxBridge handleError:]_block_invoke
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_callback_4CF
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
__CFRunLoopRun
CFRunLoopRunSpecific
GSEventRunModal
UIApplicationMain
main
start
Somehow it loads from dist
instead of source. Inspecting node_modules
shows that dist
is lacking the errors.js
file.
Steps to reproduce:
- Create a new app using
expo init
- Add autodux using
yarn add autodux
- Add
redux
andreact-redux
and connect it to a reducer created withautodux
You can fix the issue by copying errors.js
from src
to dist
.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
7 Ways To Fix “The Specified Module Could Not Be Found” Error
The specified module could not be found” is a common error that usually occurs when your system tries to access missing DLL files....
Read more >The error “The specified module could not be found”
It sounds like an error “The specified module could not be found” occured on your Windows 11. This could be caused by various...
Read more >How to fix "The specified module could not be found" error on ...
How to fix "The specified module could not be found" error on Windows? · Fix 1. Scan your computer for malware · Fix...
Read more >How To Fix The specified module could not be found
Fixes for The specified module could not be found · Fix 1: Run the SFC scan · Fix 2: Update your device drivers...
Read more >5 ways to Fix "The specified module could not be found"
5 ways to Fix “The specified module could not be found” · 1. Install or Repair Microsoft DirectX · 2. Download and Replace...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Published autodux@5.0.1
@ericelliott Thank you!