react-chess / chessground

Chessground React Wrapper
https://www.npmjs.com/package/@react-chess/chessground
GNU General Public License v3.0
29 stars 5 forks source link

Compile issues using vanilla CRA project #5

Closed matt-d-webb closed 2 years ago

matt-d-webb commented 2 years ago

Hey 👋🏼

When doing a basic create-react-app project using this package, I get the following compile errors.

Steps to recreate:

  1. boiler plater CRA

    npx create-react-app chessboard-test
  2. add chessground react dependency

yarn add @react-chess/chessground
  1. add component to root src/App.js

    import Chessground from '@react-chess/chessground';
    function App() {
    return (
    <div>
      <Chessground />
    </div>
    );
    }
    export default App;
  2. start project

    yarn start

Environment:

Error Output (Windows)

image

Error Output (Mac OS)

Screenshot 2022-01-04 at 07 56 52

💭 Wonder if this is an issue specifically with the parent project chessground and adding resolve: { fullySpecified: false } is required in their webpack build.

H-Richard commented 2 years ago

thank you so much for this, I will do some investigating!

matt-d-webb commented 2 years ago

Nice work, thanks dude! 😎

H-Richard commented 2 years ago

@matt-d-webb actually not sure if it's 100% fixed, I ran out of travis-CI credits so I haven't published a new package version yet :rofl:

H-Richard commented 2 years ago

trying to setup some github actions to take over

H-Richard commented 2 years ago

you're right, this looks like an issue with the parent project chessground, going to publish a new version of this locked chessground 7.1 and work on getting an up to date version later