Error: Cannot find module './Spinner' from 'index.js'
See original GitHub issuehttps://github.com/xinthink/react-native-material-kit/blob/master/lib/mdl/index.js#L9
Spinner.js does not existed,
The existing ones are Spinner.android.js or Spinner.ios.js
Is this on purpose?
Running test reporting:
- Error: Cannot find module './Spinner' from 'index.js'
at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:151:17)
at Object.<anonymous> (node_modules/react-native-material-kit/lib/mdl/index.js:9:17)
at Object.<anonymous> (node_modules/react-native-material-kit/lib/index.js:10:10)
Issue Analytics
- State:
- Created 7 years ago
- Comments:6
Top Results From Across the Web
I am getting error while implementing ngx-Spinner 8.0.3
First: When you got this error, first you need to remove the ... Second: Remove your Node Module folder and use the command...
Read more >Fix error: cannot find module 'x' in Node.js or 'express'
A quick fix to the error-cannot find module is to try and install all the presented module in your terminal correctly. Navigate to...
Read more >ora - npm
Text or a function that returns text to display before the spinner. No prefix text will be displayed if set to an empty...
Read more >spin.js
A highly configurable JavaScript/CSS spinner that can be used as a resolution-independent loading indicator.
Read more >Spinners | Android Developers
Touching the spinner displays a dropdown menu with all other ... You should usually do so in your XML layout with a <Spinner>...
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 Free
Top 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
I face the same problem here.
@lakeoffaith I understand that rn can require the right file when running but I can’t get this to work in my tests though as babel try to load a Spinner.js file and not a Spinner.ios.js file…
As I do not specifically need the spinner in my code I’m now requiring the desired components (here the MKButton) through:
import * as MKButton from '../../node_modules/react-native-material-kit/lib/mdl/Button';
So that I don’t have to import the spinner as well but this is:
outdated, closing