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.

[Android] TypeError: expected dynamic type 'string', but had type 'int64'

See original GitHub issue

Hello

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"

rn1

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
percytengcommented, Mar 7, 2017

Iโ€™m getting this issue on 0.38.0

0reactions
chirag04commented, Oct 10, 2015

๐Ÿ‘

Read more comments on GitHub >

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

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