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

"ReferenceError: arguments is not defined" in react-bootstrap-table2-toolkit #710

Open
loic-brtd opened this issue Jan 13, 2024 · 0 comments

Comments

@loic-brtd
Copy link

Describe the bug
Hi! I was trying to build and start CastleMock locally on my machine but I encountered a JS error when opening my browser on http://localhost:3000 :

SearchBar.js:9 Uncaught ReferenceError: arguments is not defined
    at ./node_modules/react-bootstrap-table2-toolkit/lib/src/search/SearchBar.js (SearchBar.js:9:1)
    at options.factory (react refresh:6:1)
    at __webpack_require__ (bootstrap:24:1)
    at fn (hot module replacement:62:1)
    at ./node_modules/react-bootstrap-table2-toolkit/lib/src/search/index.js (index.js:7:1)
    at options.factory (react refresh:6:1)
    at __webpack_require__ (bootstrap:24:1)
    at fn (hot module replacement:62:1)
    at ./node_modules/react-bootstrap-table2-toolkit/lib/index.js (index.js:8:1)
    at options.factory (react refresh:6:1)

To Reproduce
Steps to reproduce the behavior:

git clone git@github.com:castlemock/castlemock.git # I actually made a fork and then cloned the fork
cd castlemock/
cd web/web-frontend/
yarn install
yarn start # opens my browser on http://localhost:3000
# Open the javascript console in the dev tools to see the stack trace mentioned above

Expected behavior
I expect the homepage (or login page) of CastleMock to appear with no error.

Castle Mock

  • Version 1.65 (root pom.xml version, master branch, commit b65a955)
  • Node Version v20.11.0
  • Yarn version 1.22.21
  • Java Version 21 (not used to reproduce this bug)

Desktop (please complete the following information):

  • OS: Linux Manjaro (5.10.205-1-MANJARO)
  • Browser: Google Chrome (119.0.6045.199)

Additional context:
This error is related to this issue react-bootstrap-table/react-bootstrap-table2#1520, so it doesn't seem to be a bug from CastleMock itself but from a dependency. However, I'm wondering if anyone has encountered this when working on CastleMock and if so, is there a workaround or a fix I can use? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant