Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extension crash on boot using RecoilizeDebugger #141

Open
recursiveElk opened this issue Sep 22, 2021 · 7 comments
Open

extension crash on boot using RecoilizeDebugger #141

recursiveElk opened this issue Sep 22, 2021 · 7 comments

Comments

@recursiveElk
Copy link

Recoil crashes immediately and chrome extension fails (needs to be reloaded).

import { RecoilRoot } from 'recoil';
import RecoilizeDebugger from 'recoilize';

...

<React.StrictMode>
<RecoilRoot>
        <RecoilizeDebugger/>
        <App />
</RecoilRoot>
</React.StrictMode>

Screen Shot 2021-09-22 at 3 30 21 PM

@recursiveElk recursiveElk changed the title extension cradh extension crash on boot using RecoilizeDebugger Sep 22, 2021
@mteichtahl
Copy link

I am seeing the same thing

@cagosto
Copy link

cagosto commented Oct 13, 2021

same here

@balboFK
Copy link

balboFK commented Nov 4, 2021

Same here aswell.

@brendanmorrell
Copy link

Ditto

1 similar comment
@daniellimapro
Copy link

Ditto

@daniellimapro
Copy link

I am using Next, and i try:

//If your application uses Next.js modify the _app.js as follows
import dynamic from 'next/dynamic';
import { useEffect, useState } from 'react';
import { RecoilRoot } from 'recoil';

function MyApp({ Component, pageProps }) {

  const [root, setRoot] = useState(null)
  const RecoilizeDebugger = dynamic(
	() => {
	  return import('recoilize');
	},
	{ ssr: false}
  );

  useEffect(() => {

    if (typeof window.document !== 'undefined') {
      setRoot(document.getElementById('__next'));
    }
  }, [root]);
 
  return (
    <>
    <RecoilRoot>
      <RecoilizeDebugger root = {root}/>
      <Component {...pageProps} />
    </RecoilRoot>
    </>
  );
}


export default MyApp;

But not resolved.

@joey-ma
Copy link
Contributor

joey-ma commented Feb 10, 2022

Thank you for your interest and your patience!

Until everything gets cleared up, please use following steps to load the unpacked extension:

  1. go to your desired directory for saving Recoilize, enter git clone https://github.com/open-source-labs/Recoilize.git to download the repo
  2. enter cd Recoilize to enter into the Recoilize folder
  3. enter npm install --force to install all necessary dependencies
  4. enter npm run build to ensure your local files are correctly built
  5. open up Google Chrome, go to --> Manage Extensions --> Load unpacked, then locate and select the exact file location of Recoilize/src/extension/build.
  6. you should be able to open up Recoilize now! if dev tool does not load properly, try refreshing it.
  7. you can test it out here @ https://www.recoilize.io/#playground-section or follow the instructions @ https://github.com/open-source-labs/Recoilize#readme to test it with your own app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants