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

Some demos don't work on CodeSandBox #1216

Closed
ibes opened this issue Mar 23, 2022 · 5 comments
Closed

Some demos don't work on CodeSandBox #1216

ibes opened this issue Mar 23, 2022 · 5 comments
Labels

Comments

@ibes
Copy link

ibes commented Mar 23, 2022

Could you please check these demos. They show a error about the bundled js file

Unfortunately I don't know how to fix this and the demos are very very helful.

https://codesandbox.io/s/github/jacomyal/sigma.js/tree/main/examples/events
https://codesandbox.io/s/github/jacomyal/sigma.js/tree/main/examples/mouse-manipulations

@ibes ibes added the bug label Mar 23, 2022
@kmalski
Copy link

kmalski commented Mar 26, 2022

Hi, I have encountered the same "bug" but it's more like codesandbox issue and in my case I just had to disable adblock 😃 Try it

@ibes
Copy link
Author

ibes commented Mar 27, 2022

No, was not enough for me.
Firefox and Chrome tested.
Both in plugin-less privacy tabs.
Used the events demo for the tests.

@kmalski
Copy link

kmalski commented Mar 27, 2022

Oh I found the difference. The examples you linked do not have sandbox.config.json file. If you want to play around with those examples, you should add that missing file with this content:

{
  "infiniteLoopProtection": true,
  "hardReloadOnChange": false,
  "view": "browser",
  "template": "create-react-app"
}

And then you have to refresh the page (this was important for me, because codesandbox did not reload project without this).

Despite this temporary fix, I think these examples should be fixed and proper configuration files should be added.

@ibes
Copy link
Author

ibes commented Mar 27, 2022

That did it for me!
Thanks!

@sim51
Copy link
Collaborator

sim51 commented Mar 28, 2022

Codesandbox config file has been added in every example.
All example are working now, so I'm closing this ticket.

Thanks for your contribution !

@sim51 sim51 closed this as completed Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants