Recoilize icon indicating copy to clipboard operation
Recoilize copied to clipboard

extension crash on boot using RecoilizeDebugger

Open recursiveElk opened this issue 3 years ago • 7 comments

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 avatar Sep 22 '21 03:09 recursiveElk

I am seeing the same thing

mteichtahl avatar Sep 30 '21 03:09 mteichtahl

same here

cagosto avatar Oct 13 '21 19:10 cagosto

Same here aswell.

balboFK avatar Nov 04 '21 17:11 balboFK

Ditto

brendanmorrell avatar Nov 05 '21 23:11 brendanmorrell

Ditto

daniellimapro avatar Nov 11 '21 22:11 daniellimapro

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.

daniellimapro avatar Nov 11 '21 22:11 daniellimapro

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

joey-ma avatar Feb 10 '22 01:02 joey-ma