This is the package.json
{
“dependencies”: {
“@babel/core”: “^7.16.0”,
“@babel/plugin-proposal-private-property-in-object”: “^7.21.11”,
“babel-loader”: “^8.2.3”,
“babel-plugin-named-asset-import”: “^0.3.8”,
“babel-preset-react-app”: “^10.0.1”,
“@chakra-ui/icons”: “^2.0.18”,
“@chakra-ui/react”: “^2.5.3”,
“@emotion/react”: “^11.0.0”,
“@emotion/styled”: “^11.0.0”,
“@fuel-ui/css”: “^0.23.3”,
“@fuel-ui/react”: “^0.23.3”,
“@fuel-wallet/react”: “^0.16.1”,
“@fuel-wallet/sdk”: “^0.16.1”,
“@testing-library/jest-dom”: “^5.16.4”,
“@testing-library/react”: “^13.0.1”,
“@testing-library/user-event”: “^14.1.0”,
“@types/jest”: “^28.1.1”,
“@types/node”: “^12.0.0”,
“@types/react”: “^18.0.9”,
“@types/react-dom”: “^18.0.4”,
“framer-motion”: “^6.2.9”,
“fuels”: “0.94.6”,
“react”: “^18.2.0”,
“react-dom”: “^18.2.0”,
“react-icons”: “^3.0.0”,
“react-router-dom”: “^6.4.3”,
“react-scripts”: “5.0.1”,
“typescript”: “^4.6.3”,
“web-vitals”: “^2.1.4”
},
“scripts”: {
“start”: “react-scripts start”,
“build”: “react-scripts build”,
“test”: “react-scripts test”,
“eject”: “react-scripts eject”
},
“eslintConfig”: {
“extends”: “react-app”
},
“browserslist”: {
“production”: [
“>0.2%”,
“not dead”,
“not op_mini all”
],
“development”: [
“last 1 chrome version”,
“last 1 firefox version”,
“last 1 safari version”
]
},
“devDependencies”: {
“@babel/core”: “^7.16.0”,
“babel-preset-react-app”: “^10.0.1”,
“@babel/plugin-proposal-class-properties”: “^7.18.6”,
“@babel/plugin-proposal-decorators”: “^7.24.7”,
“@babel/plugin-proposal-private-methods”: “^7.18.6”,
“@babel/plugin-transform-runtime”: “^7.25.4”,
“@babel/plugin-transform-typescript”: “^7.25.2”,
“@babel/preset-typescript”: “^7.24.7”,
“@types/react-router-dom”: “^5.3.3”
},
“plugins”: [
“@babel/plugin-transform-typescript”,
{
“allowDeclareFields”: true
},
“@babel/plugin-syntax-dynamic-import”
],
“babel”: {
“presets”: [
“react-app”
]
}
}
And this is the babel.config.js
module.exports = {
presets: [
‘@babel/preset-typescript’,
[‘@babel/preset-env’, { targets: { node: ‘current’ } }],
‘module:metro-react-native-babel-preset’,
],
plugins: [
[‘@babel/plugin-transform-typescript’, { allowDeclareFields: true }],
‘@babel/plugin-proposal-class-properties’,
‘@babel/plugin-proposal-private-methods’,
‘@babel/plugin-proposal-decorators’,
],
};
This issue start when bumping fuel packages