question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The module `./errors` could not be found

See original GitHub issue

Using 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:

  1. Create a new app using expo init
  2. Add autodux using yarn add autodux
  3. Add redux and react-redux and connect it to a reducer created with autodux

You can fix the issue by copying errors.js from src to dist.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
ericelliottcommented, Mar 7, 2019

Published autodux@5.0.1

1reaction
janhesterscommented, Mar 8, 2019

@ericelliott Thank you!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found