You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a React component, and I want to include a Chessboard component within it.
So, I only added this line to my file. import Chessboard from 'chessboardjsx';
I never actually used the Chessboard in my code, but it still returned this error:
WebpackError: ReferenceError: window is not defined
- chessboard.min.js:1
node_modules/chessboardjsx/dist/chessboard.min.js:1:253
When I remove that line, my code works as expected.
I'm using React v17.0 and Gatsby 2.27.5
The text was updated successfully, but these errors were encountered:
I have a React component, and I want to include a Chessboard component within it.
So, I only added this line to my file.
import Chessboard from 'chessboardjsx';
I never actually used the Chessboard in my code, but it still returned this error:
When I remove that line, my code works as expected.
I'm using React v17.0 and Gatsby 2.27.5
The text was updated successfully, but these errors were encountered: