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.

"Can't make class hot reloadable due to being read-only”

See original GitHub issue

I’m getting the "Can’t make class hot reloadable due to being read-only” warning on three of my components. Considering that these are ordinary components, I am a bit confused by this error; it seems random. Any ideas what could have gone wrong?

Here is an example of one such component that is throwing the error. The other two components are reasonably similar to this one:

import React, { Component } from 'react';
import { View } from 'components/layout';
import { RegisterForm } from './components';

const viewConfig = {
  ...
};

export default class RegisterView extends Component {
  render() {
    return (
      <View {...viewConfig}>
        <RegisterForm />
      </View>
    );
  }
}

EDIT:

Looks like this is connected to #72?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:34 (10 by maintainers)

github_iconTop GitHub Comments

13reactions
nikhilyeole1commented, Jun 2, 2016

I too was getting this issue. After reading comments above i fixed it by doing following thing

/* file a.js */
export default x;

/* file index.js */
//previously
// export {default as x} from a;
//now
export x from a;

Useful link - https://medium.com/@kentcdodds/misunderstanding-es6-modules-upgrading-babel-tears-and-a-solution-ad2d5ab93ce0#.rvrx62s5p

11reactions
eladocommented, May 26, 2016

And FYI the links in the warning are incorrect: http://babeljs.io/docs/advanced/loose/ is 404 http://babeljs.io/docs/usage/options/ doesn’t mention loose mode

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Fix a Folder That Keeps Reverting to Read Only - Alphr
A folder created by the administrator account can't be modified by a guest account. So, make sure to log in using the Administrator...
Read more >
How to Fix Folder Keeps Reverting to Read Only on Windows 10
Disable Controlled Access​​ Press and hold the “Windows Key + I” button to launch Windows Settings. Once the Settings are opened, navigate to ......
Read more >
Folder keeps reverting to read only in Windows 10 / 11 Fix
According to these users, the problematic folder keeps returning the read-only status automatically, making them non editable. If you are facing ...
Read more >
Reloading strongly typed Options on file changes in ASP.NET ...
This article discusses how to reload configuration values automatically when a configuration file changes. It then shows how to reload ...
Read more >
Class TransactionOptions (3.23.0) | Python client library
Snapshot read-only transactions provide guaranteed consistency across several reads, but do not allow writes. Snapshot read-only transactions ...
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