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

React Native - Syntax Error: Static class blocks are not enabled #6828

Closed
3 of 4 tasks
TLmaK0 opened this issue Jan 18, 2025 · 13 comments
Closed
3 of 4 tasks

React Native - Syntax Error: Static class blocks are not enabled #6828

TLmaK0 opened this issue Jan 18, 2025 · 13 comments
Assignees
Labels
bug This issue is a bug. p2 This is a standard priority issue

Comments

@TLmaK0
Copy link

TLmaK0 commented Jan 18, 2025

Checkboxes for prior research

Describe the bug

After add @aws-sdk/[email protected] to package.json, the Androd build stops working. Rolling back to @aws-sdk/[email protected] works again. The problem could be with @smithy/smithy-client upgrade.

Regression Issue

  • Select this option if this issue appears to be a regression.

SDK version number

@aws-sdk/[email protected]

Which JavaScript Runtime is this issue in?

React Native

Details of the browser/Node.js/ReactNative version

13.6.9

Reproduction Steps

yarn add @aws-sdk/client-s3

react-native run-android

Observed Behavior

SyntaxError: /home/hugo/projects/msc/mobile-app/node_modules/@aws-sdk/client-s3/dist-cjs/index.js: Static class blocks are not enabled. Please add `@babel/plugin-transform-class-static-block` to your configuration.
  319 | // src/models/S3ServiceException.ts
  320 | var import_smithy_client = require("@smithy/smithy-client");
> 321 | var S3ServiceException = class _S3ServiceException extends import_smithy_client.ServiceException { :app:createBundleStagingDebugJsAndAssets
      |                          ^
  322 |   static {
  323 |     __name(this, "S3ServiceException");
  324 |   }
    at File.buildCodeFrameError (/home/hugo/projects/msc/mobile-app/node_modules/@babel/core/lib/transformation/file/file.js:195:12)
    at NodePath.buildCodeFrameError (/home/hugo/projects/msc/mobile-app/node_modules/@babel/traverse/lib/path/index.js:117:21)
    at shouldTransform (/home/hugo/projects/msc/mobile-app/node_modules/@babel/helper-create-class-features-plugin/lib/features.js:136:16)
    at PluginPass.Class (/home/hugo/projects/msc/mobile-app/node_modules/@babel/helper-create-class-features-plugin/lib/index.js:112:44)
    at newFn (/home/hugo/projects/msc/mobile-app/node_modules/@babel/traverse/lib/visitors.js:172:14)
    at NodePath._call (/home/hugo/projects/msc/mobile-app/node_modules/@babel/traverse/lib/path/context.js:49:20)
    at NodePath.call (/home/hugo/projects/msc/mobile-app/node_modules/@babel/traverse/lib/path/context.js:39:18)
    at NodePath.visit (/home/hugo/projects/msc/mobile-app/node_modules/@babel/traverse/lib/path/context.js:88:31)
    at TraversalContext.visitQueue (/home/hugo/projects/msc/mobile-app/node_modules/@babel/traverse/lib/context.js:90:16)
    at TraversalContext.visitSingle (/home/hugo/projects/msc/mobile-app/node_modules/@babel/traverse/lib/context.js:66:19)
    at TraversalContext.visit (/home/hugo/projects/msc/mobile-app/node_modules/@babel/traverse/lib/context.js:113:19)
    at traverseNode (/home/hugo/projects/msc/mobile-app/node_modules/@babel/traverse/lib/traverse-node.js:22:17)
    at NodePath.visit (/home/hugo/projects/msc/mobile-app/node_modules/@babel/traverse/lib/path/context.js:94:52)
    at TraversalContext.visitQueue (/home/hugo/projects/msc/mobile-app/node_modules/@babel/traverse/lib/context.js:90:16)
    at TraversalContext.visitMultiple (/home/hugo/projects/msc/mobile-app/node_modules/@babel/traverse/lib/context.js:62:17)
    at TraversalContext.visit (/home/hugo/projects/msc/mobile-app/node_modules/@babel/traverse/lib/context.js:111:19)
    at traverseNode (/home/hugo/projects/msc/mobile-app/node_modules/@babel/traverse/lib/traverse-node.js:22:17)
    at NodePath.visit (/home/hugo/projects/msc/mobile-app/node_modules/@babel/traverse/lib/path/context.js:94:52)
    at TraversalContext.visitQueue (/home/hugo/projects/msc/mobile-app/node_modules/@babel/traverse/lib/context.js:90:16)
    at TraversalContext.visitMultiple (/home/hugo/projects/msc/mobile-app/node_modules/@babel/traverse/lib/context.js:62:17)
    at TraversalContext.visit (/home/hugo/projects/msc/mobile-app/node_modules/@babel/traverse/lib/context.js:111:19)
    at traverseNode (/home/hugo/projects/msc/mobile-app/node_modules/@babel/traverse/lib/traverse-node.js:22:17)
    at NodePath.visit (/home/hugo/projects/msc/mobile-app/node_modules/@babel/traverse/lib/path/context.js:94:52)
    at TraversalContext.visitQueue (/home/hugo/projects/msc/mobile-app/node_modules/@babel/traverse/lib/context.js:90:16)
    at TraversalContext.visitSingle (/home/hugo/projects/msc/mobile-app/node_modules/@babel/traverse/lib/context.js:66:19)
    at TraversalContext.visit (/home/hugo/projects/msc/mobile-app/node_modules/@babel/traverse/lib/context.js:113:19)
    at traverseNode (/home/hugo/projects/msc/mobile-app/node_modules/@babel/traverse/lib/traverse-node.js:22:17)
    at traverse (/home/hugo/projects/msc/mobile-app/node_modules/@babel/traverse/lib/index.js:53:34)
    at transformFile (/home/hugo/projects/msc/mobile-app/node_modules/@babel/core/lib/transformation/index.js:80:31)
    at transformFile.next (<anonymous>)
    at run (/home/hugo/projects/msc/mobile-app/node_modules/@babel/core/lib/transformation/index.js:25:12)
    at run.next (<anonymous>)
    at /home/hugo/projects/msc/mobile-app/node_modules/@babel/core/lib/transform-ast.js:23:33
    at Generator.next (<anonymous>)
    at evaluateSync (/home/hugo/projects/msc/mobile-app/node_modules/gensync/index.js:251:28)
    at sync (/home/hugo/projects/msc/mobile-app/node_modules/gensync/index.js:89:14)
    at stopHiding - secret - don't use this - v1 (/home/hugo/projects/msc/mobile-app/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js:47:12)
    at transformFromAstSync (/home/hugo/projects/msc/mobile-app/node_modules/@babel/core/lib/transform-ast.js:43:83)
    at Object.transform (/home/hugo/projects/msc/mobile-app/node_modules/@react-native/metro-babel-transformer/src/index.js:217:7)
    at transformJSWithBabel (/home/hugo/projects/msc/mobile-app/node_modules/metro-transform-worker/src/index.js:288:45)
    at Object.transform (/home/hugo/projects/msc/mobile-app/node_modules/metro-transform-worker/src/index.js:413:18)
    at transformFile (/home/hugo/projects/msc/mobile-app/node_modules/metro/src/DeltaBundler/Worker.flow.js:54:36)
    at Object.transform (/home/hugo/projects/msc/mobile-app/node_modules/metro/src/DeltaBundler/Worker.flow.js:30:10)
    at execFunction (/home/hugo/projects/msc/mobile-app/node_modules/jest-worker/build/workers/processChild.js:149:17)
    at execHelper (/home/hugo/projects/msc/mobile-app/node_modules/jest-worker/build/workers/processChild.js:137:5)
    at execMethod (/home/hugo/projects/msc/mobile-app/node_modules/jest-worker/build/workers/processChild.js:140:5)
    at process.messageListener (/home/hugo/projects/msc/mobile-app/node_modules/jest-worker/build/workers/processChild.js:44:7)
    at process.emit (node:events:519:28)
    at emit (node:internal/child_process:951:14)

> Task :app:createBundleStagingDebugJsAndAssets FAILED

Expected Behavior

The application is deployed in the android device

Possible Solution

rollingback to versión @aws-sdk/[email protected]

Additional Information/Context

In version @aws-sdk/[email protected], @smithy/smithy-client was upgraded.

@TLmaK0 TLmaK0 added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jan 18, 2025
@aBurmeseDev aBurmeseDev self-assigned this Jan 21, 2025
@aBurmeseDev
Copy link
Contributor

Hi @TLmaK0 - thanks for reaching out.

Could you share your package.json or list of dependencies and a minimal code to reproduce?

@aBurmeseDev aBurmeseDev added response-requested Waiting on additional info and feedback. Will move to \"closing-soon\" in 7 days. p2 This is a standard priority issue and removed needs-triage This issue or PR still needs to be triaged. labels Jan 23, 2025
Copy link

github-actions bot commented Feb 3, 2025

This issue has not received a response in 1 week. If you still think there is a problem, please leave a comment to avoid the issue from automatically closing.

@github-actions github-actions bot added the closing-soon This issue will automatically close in 4 days unless further comments are made. label Feb 3, 2025
@radelcom
Copy link

radelcom commented Feb 3, 2025

Also starting to see this issue after upgrading to "@aws-sdk/client-s3": "^3.738.0"

@github-actions github-actions bot removed closing-soon This issue will automatically close in 4 days unless further comments are made. response-requested Waiting on additional info and feedback. Will move to \"closing-soon\" in 7 days. labels Feb 4, 2025
@aBurmeseDev
Copy link
Contributor

Hi @radelcom - could you share these below? It might be dependencies conflict but will need to confirm.

your package.json or list of dependencies and a minimal code to reproduce?

@aBurmeseDev aBurmeseDev added the response-requested Waiting on additional info and feedback. Will move to \"closing-soon\" in 7 days. label Feb 4, 2025
@radelcom
Copy link

radelcom commented Feb 5, 2025

Hi @radelcom - could you share these below? It might be dependencies conflict but will need to confirm.

your package.json or list of dependencies and a minimal code to reproduce?

we have a monorepo setup and here are our dependencies in package.json. Also, note this is happening during jest testing. adding the @babel/plugin-transform-class-static-block babel plugin fixes the runtime but not the jest test environment.

"dependencies": {
    "@aws-amplify/react-native": "^1.1.6",
    "@aws-amplify/ui-react-native": "^2.2.14",
    "@aws-sdk/client-athena": "^3.738.0",
    "@aws-sdk/client-bedrock-runtime": "^3.738.0",
    "@aws-sdk/client-cognito-identity-provider": "^3.738.0",
    "@aws-sdk/client-dynamodb": "^3.738.0",
    "@aws-sdk/client-elasticache": "^3.738.0",
    "@aws-sdk/client-s3": "^3.738.0",
    "@aws-sdk/client-ses": "^3.738.0",
    "@aws-sdk/client-sfn": "^3.738.0",
    "@aws-sdk/client-sns": "^3.738.0",
    "@aws-sdk/client-sqs": "^3.738.0",
    "@aws-sdk/lib-dynamodb": "^3.738.0",
    "@aws-sdk/s3-request-presigner": "^3.738.0",
    "@babel/plugin-proposal-export-namespace-from": "^7.18.9",
    "@bugsnag/js": "^7.22.3",
    "@bugsnag/plugin-react": "^7.10.0",
    "@casl/ability": "^6.7.1",
    "@config-plugins/react-native-branch": "^8.0.0",
    "@draft-js-plugins/anchor": "4.2.0",
    "@draft-js-plugins/editor": "4.1.3",
    "@draft-js-plugins/inline-toolbar": "^4.2.0",
    "@draft-js-plugins/linkify": "^4.1.1",
    "@emotion/react": "11.11.1",
    "@emotion/styled": "11.11.0",
    "@expo-google-fonts/dancing-script": "^0.2.3",
    "@expo/metro-config": "0.19.9",
    "@fontsource/roboto": "^4.5.8",
    "@formatjs/intl": "^2.10.4",
    "@formatjs/intl-getcanonicallocales": "^2.3.0",
    "@formatjs/intl-locale": "^4.0.0",
    "@formatjs/intl-numberformat": "^8.10.3",
    "@formatjs/intl-pluralrules": "^5.2.14",
    "@fullstory/browser": "^1.7.1",
    "@gorhom/bottom-sheet": "^5.0.0-alpha.6",
    "@lottiefiles/react-lottie-player": "^3.5.2",
    "@middy/core": "^5.2.3",
    "@middy/http-header-normalizer": "^5.3.2",
    "@middy/http-json-body-parser": "^5.2.3",
    "@middy/http-multipart-body-parser": "^5.4.6",
    "@minoru/react-dnd-treeview": "^3.4.1",
    "@mui/icons-material": "^5.11.11",
    "@mui/lab": "^5.0.0-alpha.99",
    "@mui/material": "^5.11.14",
    "@mui/styled-engine-sc": "^5.7.0",
    "@mui/styles": "^5.10.16",
    "@mui/x-data-grid-pro": "5.17.14",
    "@mui/x-date-pickers": "^6.10.0",
    "@mui/x-date-pickers-pro": "^6.18.1",
    "@operto/partner-api-sdk": "^0.0.3",
    "@react-native-async-storage/async-storage": "1.23.1",
    "@react-native-community/netinfo": "11.4.1",
    "@reduxjs/toolkit": "^2.1.0",
    "@sendgrid/eventwebhook": "^8.0.0",
    "@sendgrid/mail": "^8.1.3",
    "@storybook/addon-interactions": "8.5.2",
    "@stream-io/flat-list-mvcp": "^0.10.3",
    "@stripe/react-stripe-js": "^2.7.3",
    "@stripe/stripe-js": "^4.1.0",
    "@stripe/stripe-react-native": "0.38.6",
    "@swc/helpers": "0.5.15",
    "@tanstack/react-query": "^4.35.3",
    "@trpc/client": "^10.45.0",
    "@trpc/react-query": "^10.45.0",
    "@trpc/server": "^10.45.0",
    "@typeform/embed-react": "^2.15.0",
    "@zodios/core": "^10.9.6",
    "@zodios/react": "^10.4.5",
    "async-mutex": "^0.5.0",
    "autosuggest-highlight": "^3.3.4",
    "aws-amplify": "^6.0.13",
    "aws-jwt-verify": "^4.0.0",
    "aws-lambda": "^1.0.7",
    "axios": "1.7.9",
    "branch-sdk": "^2.85.0",
    "cors": "^2.8.5",
    "countries-list": "^3.1.0",
    "crypto-js": "^4.2.0",
    "date-fns": "^2.30.0",
    "date-fns-tz": "^2.0.0",
    "dinero.js": "^2.0.0-alpha.14",
    "dotenv": "^16.3.1",
    "draft-js": "^0.11.7",
    "draftjs-to-html": "^0.9.1",
    "dynamodb-admin": "^5.1.3",
    "expo": "^52.0.28",
    "expo-auth-session": "~6.0.3",
    "expo-blur": "~14.0.3",
    "expo-clipboard": "~7.0.1",
    "expo-constants": "~17.0.5",
    "expo-document-picker": "~13.0.2",
    "expo-file-system": "~18.0.8",
    "expo-font": "~13.0.3",
    "expo-haptics": "~14.0.1",
    "expo-image-manipulator": "~13.0.6",
    "expo-image-picker": "~16.0.4",
    "expo-linear-gradient": "~14.0.2",
    "expo-linking": "~7.0.5",
    "expo-localization": "~16.0.1",
    "expo-media-library": "~17.0.5",
    "expo-router": "~4.0.17",
    "expo-sharing": "~13.0.1",
    "expo-splash-screen": "0.29.21",
    "expo-status-bar": "2.0.1",
    "ga-4-react": "^0.1.281",
    "gmail-tester": "^1.3.8",
    "html-to-draftjs": "^1.5.0",
    "i18n-js": "^4.3.2",
    "json-schema-to-ts": "^3.0.0",
    "jsonwebtoken": "^9.0.0",
    "jspdf": "^2.5.1",
    "jwt-decode": "^3.1.2",
    "lodash": "^4.17.21",
    "material-ui-dropzone": "^3.5.0",
    "material-ui-popup-state": "^5.0.4",
    "mixpanel-browser": "^2.55.1",
    "mixpanel-react-native": "^3.0.7",
    "mui-color-input": "^2.0.0",
    "native-base": "^3.4.28",
    "normalize-css-color": "^1.0.2",
    "normalizr": "^3.6.2",
    "openapi-zod-client": "^1.16.2",
    "pintura": "link:./apps/operations/local_modules/pintura",
    "playwright": "^1.49.1",
    "playwright-webkit": "^1.43.0",
    "postinstall-postinstall": "^2.1.0",
    "qrcode.react": "^4.1.0",
    "react": "18.3.1",
    "react-copy-to-clipboard": "^5.0.3",
    "react-device-detect": "^2.2.3",
    "react-dnd": "^16.0.1",
    "react-dom": "18.3.1",
    "react-draft-wysiwyg": "^1.15.0",
    "react-dropzone": "^14.2.3",
    "react-hook-form": "^7.53.2",
    "react-hotjar": "^5.4.1",
    "react-iframe": "^1.8.5",
    "react-images-upload": "^1.2.8",
    "react-infinite-scroll-component": "^6.1.0",
    "react-native": "0.76.6",
    "react-native-autolink": "^4.2.0",
    "react-native-bluetooth-state-manager": "^1.3.5",
    "react-native-branch": "^6.2.2",
    "react-native-calendars": "^1.1307.0",
    "react-native-date-picker": "^5.0.7",
    "react-native-device-info": "^10.13.1",
    "react-native-file-access": "^3.1.0",
    "react-native-gesture-handler": "~2.20.2",
    "react-native-get-random-values": "~1.11.0",
    "react-native-logs": "^5.0.1",
    "react-native-mmkv": "^2.12.2",
    "react-native-paper": "patch:react-native-paper@npm%3A5.12.3#~/.yarn/patches/react-native-paper-npm-5.12.3-1a888b7688.patch",
    "react-native-paper-dates": "^0.21.8",
    "react-native-permissions": "^4.1.5",
    "react-native-reanimated": "~3.16.1",
    "react-native-reanimated-carousel": "^3.5.1",
    "react-native-render-html": "^6.3.4",
    "react-native-safe-area-context": "4.12.0",
    "react-native-screens": "~4.4.0",
    "react-native-signature-canvas": "^4.7.2",
    "react-native-star-rating-widget": "^1.7.3",
    "react-native-svg": "15.8.0",
    "react-native-svg-transformer": "1.5.0",
    "react-native-swiper-flatlist": "^3.2.4",
    "react-native-url-polyfill": "^2.0.0",
    "react-native-vector-icons": "^10.2.0",
    "react-native-view-shot": "~4.0.3",
    "react-native-web": "0.19.13",
    "react-native-web-refresh-control": "^1.1.2",
    "react-native-webview": "13.12.5",
    "react-phone-number-input": "^3.4.3",
    "react-pintura": "link:./apps/operations/local_modules/react-pintura",
    "react-places-autocomplete": "^7.2.0",
    "react-qr-code": "^2.0.11",
    "react-qrcode-logo": "^2.8.0",
    "react-redux": "^9.1.0",
    "react-responsive-carousel": "^3.2.20",
    "react-router-dom": "6.11.2",
    "react-signature-canvas": "^1.0.6",
    "react-stripe-checkout": "^2.6.3",
    "react-stripe-elements": "^6.1.2",
    "react-transition-group": "^4.4.5",
    "recharts": "^1.6.2",
    "redis": "^4.7.0",
    "redux-persist": "^6.0.0",
    "redux-persist-transform-encrypt": "^5.1.1",
    "serverless-dynamodb": "^0.2.56",
    "serverless-openapi-documentation": "^0.4.0",
    "serverless-plugin-scripts": "^1.0.2",
    "serverless-scriptable-plugin": "^1.3.1",
    "serverless-step-functions": "^3.21.2",
    "simple-react-validator": "^1.6.2",
    "stream-chat": "^8.54.0",
    "stream-chat-expo": "^5.44.7",
    "stream-chat-react": "^11.24.1",
    "stripe": "^16.12.0",
    "styled-by": "^0.3.0",
    "styled-components": "^5.3.6",
    "styled-props": "^1.1.2",
    "tslib": "^2.3.0",
    "twilio": "^5.1.1",
    "vite-plugin-svgr": "^4.2.0",
    "web-streams-polyfill": "3.3.3",
    "zod": "^3.22.4",
    "zod-to-json-schema": "^3.22.4",
    "zodios": "^5.1.0"
  },
  "devDependencies": {
    "@aws-amplify/auth": "^6.0.13",
    "@aws-amplify/ui-react": "patch:@aws-amplify/ui-react@npm%3A6.1.4#~/.yarn/patches/@aws-amplify-ui-react-npm-6.1.4-187013a1a4.patch",
    "@babel/core": "^7.25.2",
    "@chromatic-com/storybook": "^3",
    "@commitlint/cli": "^19.3.0",
    "@commitlint/config-conventional": "^19.2.2",
    "@config-plugins/detox": "9.0.0",
    "@expo/cli": "0.21.8",
    "@expo/metro-runtime": "4.0.1",
    "@nx/cypress": "20.4.0",
    "@nx/detox": "20.4.0",
    "@nx/devkit": "20.4.0",
    "@nx/esbuild": "20.4.0",
    "@nx/eslint": "20.4.0",
    "@nx/eslint-plugin": "20.4.0",
    "@nx/expo": "20.4.0",
    "@nx/jest": "20.4.0",
    "@nx/js": "20.4.0",
    "@nx/node": "20.4.0",
    "@nx/playwright": "20.4.0",
    "@nx/react": "20.4.0",
    "@nx/rollup": "20.4.0",
    "@nx/storybook": "20.4.0",
    "@nx/vite": "20.4.0",
    "@nx/workspace": "20.4.0",
    "@operto/aws-deploy-site": "^1.0.6",
    "@operto/aws-template-env": "^1.0.4",
    "@playwright/test": "^1.49.1",
    "@semantic-release/changelog": "^6.0.3",
    "@semantic-release/git": "^10.0.1",
    "@storybook/addon-essentials": "8.5.2",
    "@storybook/core-server": "8.5.2",
    "@storybook/react-vite": "8.5.2",
    "@swc-node/register": "1.9.2",
    "@swc/cli": "0.3.14",
    "@swc/core": "1.5.29",
    "@testing-library/jest-dom": "6.6.3",
    "@testing-library/jest-native": "~5.4.3",
    "@testing-library/react": "16.1.0",
    "@testing-library/react-native": "12.9.0",
    "@testing-library/user-event": "^14.4.3",
    "@types/autosuggest-highlight": "^3.2.0",
    "@types/aws-lambda": "^8.10.136",
    "@types/branch-sdk": "^2.53.7",
    "@types/cors": "^2.8.13",
    "@types/crypto-js": "^4.2.2",
    "@types/draft-js": "^0.11.10",
    "@types/draftjs-to-html": "^0.8.1",
    "@types/dropzone": "^5.7.3",
    "@types/express": "4.17.21",
    "@types/html-to-draftjs": "^1.4.0",
    "@types/jest": "29.5.14",
    "@types/jsonwebtoken": "^9.0.1",
    "@types/jwt-decode": "^3.1.0",
    "@types/lodash": "^4.14.191",
    "@types/mixpanel-browser": "^2.50.0",
    "@types/node": "18.19.9",
    "@types/react": "18.3.18",
    "@types/react-copy-to-clipboard": "^5.0.4",
    "@types/react-dom": "~18.3.1",
    "@types/react-draft-wysiwyg": "^1.13.2",
    "@types/react-places-autocomplete": "^7.2.1",
    "@types/react-redux": "7.1.25",
    "@types/react-router-dom": "^5.1.7",
    "@types/react-signature-canvas": "^1.0.5",
    "@types/react-stripe-elements": "^6.0.6",
    "@types/react-test-renderer": "18.0.0",
    "@types/recharts": "^1.8.24",
    "@types/serverless": "^3.12.11",
    "@types/styled-components": "^5.1.26",
    "@types/supertest": "^2.0.12",
    "@types/url-parse": "^1.4.11",
    "@typescript-eslint/eslint-plugin": "7.18.0",
    "@typescript-eslint/parser": "7.18.0",
    "@vitejs/plugin-react": "4.2.1",
    "@vitest/coverage-v8": "1.6.0",
    "@vitest/ui": "1.6.0",
    "aws-sdk-client-mock": "^3.0.1",
    "babel-jest": "29.7.0",
    "babel-loader": "^9.1.3",
    "babel-preset-expo": "12.0.6",
    "cross-env": "^7.0.3",
    "cypress": "13.17.0",
    "detox": "20.31.0",
    "esbuild": "^0.19.2",
    "eslint": "8.57.1",
    "eslint-config-prettier": "9.1.0",
    "eslint-plugin-cypress": "2.15.1",
    "eslint-plugin-import": "2.31.0",
    "eslint-plugin-jsx-a11y": "6.10.1",
    "eslint-plugin-playwright": "^0.15.3",
    "eslint-plugin-prettier": "^5.1.3",
    "eslint-plugin-react": "7.32.2",
    "eslint-plugin-react-hooks": "5.0.0",
    "eslint-plugin-storybook": "^0.6.13",
    "eslint-webpack-plugin": "^4.0.0",
    "expo-module-scripts": "^3.4.1",
    "express": "4.21.2",
    "gh-pages": "^6.0.0",
    "http-proxy-middleware": "^2.0.7",
    "husky": "^8.0.3",
    "jest": "29.7.0",
    "jest-canvas-mock": "^2.4.0",
    "jest-circus": "^29.4.1",
    "jest-environment-jsdom": "29.7.0",
    "jest-expo": "52.0.3",
    "jest-fetch-mock": "^3.0.3",
    "jsdom": "22.1.0",
    "json-server": "^1.0.0-beta.3",
    "jsonwebtoken": "^9.0.0",
    "lint-staged": "^15.2.0",
    "nx": "20.4.0",
    "patch-package": "^8.0.0",
    "prettier": "^3.1.1",
    "prettier-plugin-sort-json": "^4.0.0",
    "react-test-renderer": "18.3.1",
    "semantic-release-npm-github-publish": "^1.5.4",
    "semantic-release-plus": "^20.0.0",
    "serverless": "^3.40.0",
    "serverless-deployment-bucket": "^1.6.0",
    "serverless-dotenv-plugin": "^6.0.0",
    "serverless-esbuild": "^1.54.6",
    "serverless-iam-roles-per-function": "^3.2.0",
    "serverless-offline": "^13.9.0",
    "serverless-prune-plugin": "^2.1.0",
    "serverless-ssm-publish": "^1.7.0",
    "storybook": "8.5.2",
    "supertest": "^6.3.3",
    "ts-jest": "^29.1.0",
    "ts-node": "10.9.1",
    "typescript": "5.7.3",
    "vite": "^5.0.0",
    "vite-plugin-dts": "2.3.0",
    "vite-plugin-eslint": "^1.8.1",
    "vite-plugin-svgr": "^4.2.0",
    "vite-tsconfig-paths": "4.2.3",
    "vitest": "1.6.0",
    "vitest-fetch-mock": "^0.2.2",
    "wait-on": "^7.2.0"
  },

@github-actions github-actions bot removed the response-requested Waiting on additional info and feedback. Will move to \"closing-soon\" in 7 days. label Feb 6, 2025
@liuyankit
Copy link

same issue, even after adding babel/plugin-transform-class-static-block didn't work. I'm using expo ejected

@aBurmeseDev
Copy link
Contributor

Thanks for reporting, it sounds like a lot of dependencies involved with case by case scenario. Could someone share a minimal reproducible code with steps to follow?

I also found this post that may be related:

This is caused by a combination of using react-app-rewired instead of jest directly and using transformIgnorePatterns. This issue is documented here and here.

Hope that helps!

@aBurmeseDev aBurmeseDev added the response-requested Waiting on additional info and feedback. Will move to \"closing-soon\" in 7 days. label Feb 17, 2025
@saad277
Copy link

saad277 commented Feb 18, 2025

worked for me using this version :

"@aws-sdk/client-cognito-identity-provider": "^3.687.0",
and
"react-native": "0.76.6",

@liuyankit
Copy link

It only works after I downgraded from 3.741 to 3.721.0.

@github-actions github-actions bot removed the response-requested Waiting on additional info and feedback. Will move to \"closing-soon\" in 7 days. label Feb 19, 2025
@aBurmeseDev
Copy link
Contributor

I'm not able to reproduce this on my end. Please share a minimal reproducible code for further support.

@aBurmeseDev aBurmeseDev added the response-requested Waiting on additional info and feedback. Will move to \"closing-soon\" in 7 days. label Feb 25, 2025
@harshit-infogen
Copy link

harshit-infogen commented Mar 6, 2025

Facing the same issue. I am using "@aws-sdk/client-s3": "^3.633.0" for the file upload feature in my react native app. Recently, I have started getting this error after installing the node modules again.

Image

These are the version which I am using -
"@aws-sdk/client-s3": "^3.633.0",
"react-native": "^0.71.1",

Also, I tried to upgrade/downgrade to other versions but I am still getting the same issue.

Please let me know if anyone found the solution as it is blocking me to release my application.

Hi @aBurmeseDev, Can you please help me with it?

@github-actions github-actions bot removed the response-requested Waiting on additional info and feedback. Will move to \"closing-soon\" in 7 days. label Mar 7, 2025
@aBurmeseDev
Copy link
Contributor

Since you mentioned the issue was resolved for you in your new post, I'm going to close this now. I'll continue to assist you on new issue. @harshit-infogen

Copy link

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. p2 This is a standard priority issue
Projects
None yet
Development

No branches or pull requests

6 participants