HMR on Android: "TypeError: Attempting to change value of readonly property"
See original GitHub issueCurrent Behavior
I’ve followed the HMR setup guide and HMR on Android fails with TypeError: Attempting to change value of readonly property while trying to apply changes. Works totally fine on iOS.

Expected Behavior
Should just work like on iOS 😃
Haul Configuration (webpack.haul.js)
const path = require('path')
module.exports = ({ platform }, defaults) => ({
entry: path.resolve('demo/'),
resolve: {
...defaults.resolve,
alias: {
'~': process.cwd(),
},
},
})
Your Environment
| software | version |
|---|---|
| Haul | v1.0.0-beta.13 |
| react-native | both 0.52.0 and 0.53.0 |
| node | 8.8.1 |
| yarn | 1.3.2 |
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:14 (10 by maintainers)
Top Results From Across the Web
TypeError: Attempting to change value of a readonly property ...
thorws "TypeError: Attempting to change value of a readonly property. defineProperty." when i run code in set top box.
Read more >TypeError: Attempted to assign to readonly property
Strings are immutable in JavaScript. We can't update them once defined. Hence the error. The solution was to, obviously, call JSON.parse() before updating...
Read more >Javascript – React: TypeError: Object(…) is not a function in Material ...
So I am trying to use Material UI in my react app. I have tried using Material UI version 0.20.1 and 0.20.0, but...
Read more >TypeError: Attempted to assign to readonly property. - Reddit
I have created a class for game milestones, with a constructor that gets the type of resource, the amount of that resource, and...
Read more >Diff - 2f8ce253d268081edd269a1ac2371b743f90bb54^! - platform ...
WinScope: Add prebuilt static copy of winscope and scripts to update the copy Test: cd prebuilts/misc/common/winscope && bash update_winscope.sh Test: open ...
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

@stackdumper This
haul.config.jsshould fix your issue. Have tested with the sample repo you have provided.I assume the
babel-loaderwas not properly applied.@sirajulm yes, those lines are nothing but a personal choice, main idea is about
includearray.