[Android] TypeError: expected dynamic type 'string', but had type 'int64'
See original GitHub issueHello
I just cloned the latest master (UTC/GMT is 20:00 on 23 September 2015) and I get the red screen of death
saying:
TypeError: expected dynamic type 'string', but had type 'int64'
That is with the default project created with react-native init freedom
and react-native run-android
.
I also get this console output from react-native start
Unable to resolve module image!myIcon from Y:\fraedom\node_modules\react-native\Libraries\Image\Image.android.js
Unable to resolve module image!app_logo from Y:\fraedom\node_modules\react-native\Libraries\Components\ToolbarAndroid\ToolbarAndroid.android.js
Unable to resolve module image!icon_settings from Y:\fraedom\node_modules\react-native\Libraries\Components\ToolbarAndroid\ToolbarAndroid.android.js
Unable to resolve module image!some_icon from Y:\fraedom\node_modules\react-native\Libraries\Components\ToolbarAndroid\ToolbarAndroid.android.js
Unable to resolve module image!myButton from Y:\fraedom\node_modules\react-native\Libraries\Components\Touchable\TouchableHighlight.js
Unable to resolve module image!myButton from Y:\fraedom\node_modules\react-native\Libraries\Components\Touchable\TouchableOpacity.js
Any ideas how to fix that?
Here is the complete output from react-native start
:
Y:\fraedom>react-native start
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Running packager on port 8081. โ
โ โ
โ Keep this packager running while developing on any JS projects. Feel โ
โ free to close this tab and run your own packager instance if you โ
โ prefer. โ
โ โ
โ https://github.com/facebook/react-native โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Looking for JS files in
Y:\fraedom
[8:55:21 AM] <START> Building Dependency Graph
[8:55:21 AM] <START> Crawling File System
[8:55:21 AM] <START> Loading bundles layout
[8:55:21 AM] <END> Loading bundles layout (0ms)
React packager ready.
[8:55:31 AM] <END> Crawling File System (9938ms)
[8:55:31 AM] <START> Building in-memory fs for JavaScript
[8:55:32 AM] <END> Building in-memory fs for JavaScript (1265ms)
[8:55:32 AM] <START> Building in-memory fs for Assets
[8:55:33 AM] <END> Building in-memory fs for Assets (1037ms)
[8:55:33 AM] <START> Building Haste Map
[8:55:34 AM] <START> Building (deprecated) Asset Map
[8:55:34 AM] <END> Building (deprecated) Asset Map (166ms)
[8:55:34 AM] <END> Building Haste Map (883ms)
[8:55:34 AM] <END> Building Dependency Graph (13130ms)
[8:55:44 AM] <START> request:/index.android.bundle?platform=android
[8:55:44 AM] <START> find dependencies
Unable to resolve module image!myIcon from Y:\fraedom\node_modules\react-native\Libraries\Image\Image.android.js
Unable to resolve module image!app_logo from Y:\fraedom\node_modules\react-native\Libraries\Components\ToolbarAndroid\ToolbarAndroid.android.js
Unable to resolve module image!icon_settings from Y:\fraedom\node_modules\react-native\Libraries\Components\ToolbarAndroid\ToolbarAndroid.android.js
Unable to resolve module image!some_icon from Y:\fraedom\node_modules\react-native\Libraries\Components\ToolbarAndroid\ToolbarAndroid.android.js
Unable to resolve module image!myButton from Y:\fraedom\node_modules\react-native\Libraries\Components\Touchable\TouchableHighlight.js
Unable to resolve module image!myButton from Y:\fraedom\node_modules\react-native\Libraries\Components\Touchable\TouchableOpacity.js
[8:55:45 AM] <END> find dependencies (145ms)
[8:55:45 AM] <START> transform
transforming [========================================] 100% 314/314
[8:55:45 AM] <END> transform (89ms)
[8:55:45 AM] <END> request:/index.android.bundle?platform=android (256ms)
::ffff:127.0.0.1 - - [Wed, 23 Sep 2015 20:55:46 GMT] "GET /flow/ HTTP/1.1" 404 - "-" "okhttp/2.4.0"
Issue Analytics
- State:
- Created 8 years ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
expected dynamic type 'string', but had type int64 in react ...
Solution is to change the file in ProjectName/android/app/build.gradle. compile 'com.facebook.react:react-native:0.11.+'.
Read more >How to Convert Integer Variable to String in React Native ...
In this tutorial we would going to solve the most common String Conversion Error โTypeError: expected dynamic type string but had type int64โ....
Read more >Android] TypeError: expected dynamic type int64', but has type ...
ไธ้ฎ้ขๆ่ฟฐ. ๅจRNๅผๅ่ฟ็จไธญ๏ผ้กน็ฎ่ฟ่กๅจ android ๅนณๅฐๆถๆฅๅฆไธ้่ฏฏไฟกๆฏ๏ผ. TypeError: expected dynamic type int64', but has type 'null'.
Read more >Fixing common type problems - Dart programming language
Common type issues you may have and how to fix them. ... and dynamic (runtime) checking. For example, the following type error is...
Read more >Type checking errors - Free Pascal
The compiler expects an expression of type integer, but gets a different type. ... Error: String types have to match exactly in $V+...
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โm getting this issue on 0.38.0
๐