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 use react-numpad in my React project. It works fine for npm run build and npm start. I use Jest and Enzyme for test. Unfortunately, when i run npm test, i get error of importing react-numpad as below:
ReferenceError: regeneratorRuntime is not defined
3 | import _ from "lodash";
4 | import { Trans } from "react-i18next";
> 5 | import NumPad from "react-numpad";
| ^
6 | import Decimal from "decimal.js-light";
at Object.<anonymous> (node_modules/react-numpad/build/elements/TimeView.js:24:1)
at Object.<anonymous> (node_modules/react-numpad/build/elements/Calendar.js:28:40)
at Object.<anonymous> (node_modules/react-numpad/build/elements/index.js:51:40)
at Object.<anonymous> (node_modules/react-numpad/build/components/Number.js:12:17)
at Object.<anonymous> (node_modules/react-numpad/build/index.js:8:38)
I use react-numpad in my React project. It works fine for
npm run build
andnpm start
. I use Jest and Enzyme for test. Unfortunately, when i runnpm test
, i get error of importing react-numpad as below:System
package.json
babel.config.js
jest.config.js
Any help would be appreciated 😄
The text was updated successfully, but these errors were encountered: