react-trello
react-trello copied to clipboard
TypeError: _interopRequireDefault is not a function
trafficstars
Describe the bug
TypeError: _interopRequireDefault is not a function
./node_modules/react-trello/dist/index.js
node_modules/react-trello/dist/index.js:58
55 | });
56 | exports.default = void 0;
57 |
> 58 | var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
59 |
60 | var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread"));
61 |
To Reproduce Steps to reproduce the behaviour:
- Create a new react app
- Install react-Trello
- Create a test board
Expected behaviour The board should be normally created
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Windows, React in WSL
- Browser: Chrome
Pacakage.json
{
"name": "anant",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"antd": "^4.12.3",
"browser-router": "^0.2.0",
"node-sass": "^5.0.0",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-router": "^5.2.0",
"react-router-dom": "^5.2.0",
"react-scripts": "4.0.3",
"react-trello": "^2.2.10",
"web-vitals": "^1.0.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
@rohitjha941 I am not able to replicate this error message. I have created a sample repo that uses the same config as above to verify the latest release: https://github.com/rcdexta/react-trello-example Pls refer to the code there to see if there are some discrepancies