-
Notifications
You must be signed in to change notification settings - Fork 430
Open
Description
Describe the Bug
react-bootstrap-table2-toolkit
package causes error when bundled using webpack 5 (5.3.2
to be exact). Simply adding import { Search } from 'react-bootstrap-table2-toolkit';
to any js file produces the following error.
SearchBar.js:9 Uncaught ReferenceError: arguments is not defined
at eval (SearchBar.js:9)
at Object../node_modules/react-bootstrap-table2-toolkit/lib/src/search/SearchBar.js (bundle.js:459)
at __webpack_require__ (bundle.js:1141)
at fn (bundle.js:1335)
at eval (index.js:7)
at Object../node_modules/react-bootstrap-table2-toolkit/lib/src/search/index.js (bundle.js:507)
at __webpack_require__ (bundle.js:1141)
at fn (bundle.js:1335)
at eval (index.js:8)
at Object../node_modules/react-bootstrap-table2-toolkit/lib/index.js (bundle.js:313)
The package works fine when bundled using webpack 4.
To Reproduce
Steps to reproduce the behavior:
- Clone this sample repository. It's a minimal react project that uses webpack 5.
- Checkout
master
branch - Start the app using
npm start
and look for the error in console. - Changes made in this commit are causing the error
Screenshots
The app fails to start because it gets an error while importing from react-bootstrap-table2-toolkit
package.
HiddeRpl and trentonsnyder
Metadata
Metadata
Assignees
Labels
No labels