Skip to content

ReferenceError: regeneratorRuntime is not defined #1

Description

@v1rtl

When I tried the following code:

import React from 'react'
import { World, Item } from 'react-dom-box2d'
import '/styles/langs.css'

// ...
return (
        <World gravity={[0, 9.8]}>
          {codes.map((code, i) => (
            <Item restitution={0.8} key={i}>
              <figure>
                <div className="picDesc">
                  <figcaption>
                    <h3 onClick={() => open(code.html_url)}>
                      {code.fork && <span>[Fork]</span>} {code.name}{code.stargazers_count}
                    </h3>
                    <span>
                      Language: <span className={'lang ' + code.language}>{code.language}</span>
                    </span>
                  </figcaption>
                  {code.description}
                </div>
              </figure>
            </Item>
          ))}
        </World>
       )
// ...

it threw an error that I didn't import regeneratorRuntime but it isn't listed in required packages of this component. So please add it to package.json or fix in another way because I have to install and import that dependency manually and this is not cool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions