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

Could not resolve "styled-components" react 19 #1526

Open
alenocera opened this issue Dec 20, 2024 · 0 comments
Open

Could not resolve "styled-components" react 19 #1526

alenocera opened this issue Dec 20, 2024 · 0 comments

Comments

@alenocera
Copy link

✘ [ERROR] Could not resolve "styled-components"

    node_modules/@smartbear/react-gherkin-editor/dist/components/GherkinEditor/styled.js:11:50:
      11 │ var styled_components_1 = __importDefault(require("styled-components"));
         ╵                                                   ~~~~~~~~~~~~~~~~~~~

  You can mark the path "styled-components" as external to exclude it from the bundle, which will
  remove this error and leave the unresolved path in the bundle. You can also surround this
  "require" call with a try/catch block to handle this failure at run-time instead of bundle-time.

✘ [ERROR] Could not resolve "styled-components"

    node_modules/@smartbear/react-gherkin-editor/dist/components/Toolbar/styled.js:11:50:
      11 │ var styled_components_1 = __importDefault(require("styled-components"));
         ╵                                                   ~~~~~~~~~~~~~~~~~~~

  You can mark the path "styled-components" as external to exclude it from the bundle, which will
  remove this error and leave the unresolved path in the bundle. You can also surround this
  "require" call with a try/catch block to handle this failure at run-time instead of bundle-time.

8:58:51 PM [vite] (client) error while updating dependencies:
Error: Build failed with 2 errors:
node_modules/@smartbear/react-gherkin-editor/dist/components/GherkinEditor/styled.js:11:50: ERROR: Could not resolve "styled-components"
node_modules/@smartbear/react-gherkin-editor/dist/components/Toolbar/styled.js:11:50: ERROR: Could not resolve "styled-components"

Facing this error my app isn't able to render at all. This error is blocking and it is critical. What can we do right now to continue to use the app with the new React19 version?
Without this changes, we must remove the package and look around for another package, that is kinda impossible to found because this package is super.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant