Skip to content

Not starting when handing code as  #1214

Open
@lanmower

Description

Bug report

Packages affected

https://github.com/lanmower/Sandpack

  • [*] sandpack-client
  • [*] sandpack-react

Description of the problem

I've reached a point on a codebase where sandPack doesn't start when providing the files as an object , but it does start when editing the code

Did I encounter a bug or did I miss a crucial step?

How to replicate:

https://github.com/lanmower/Sandpack
it's deployed on github pages

the same exact code works if you rename index.js to something else, making it the default version, and then pasting its contents on the loaded page.

Somehow changing the files state breaks it, but changing the code on the page doesnt

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions