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

Uncaught SyntaxError: Identifier '_system' has already been declared #38674

Closed
2 tasks done
mj1910 opened this issue Aug 27, 2023 · 4 comments
Closed
2 tasks done

Uncaught SyntaxError: Identifier '_system' has already been declared #38674

mj1910 opened this issue Aug 27, 2023 · 4 comments
Labels
status: waiting for author Issue with insufficient information

Comments

@mj1910
Copy link

mj1910 commented Aug 27, 2023

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Steps to reproduce 🕹

Link to live example:

Steps:

  1. Followed migration steps from https://mui.com/material-ui/migration/migration-v4/
  2. After following all steps started getting error in console and jar is not loaded.

The console log shows the error for this line - var_system=require("@catalogexplorer$mui/system");var_styled=_interopRequireDefault(require("../styles/styled"));
This started after I upgraded to @mui v5

Current behavior 😯

Get error

Expected behavior 🤔

Should load the page as dependencies have been resolved

Context 🔦

Unable to use @mui v5 packages for development.

Your environment 🌎

npx @mui/envinfo
  System:
    OS: Linux 3.10 Red Hat Enterprise Linux Workstation 7.6 (Maipo)
  Binaries:
    Node: 16.20.2 - /usr/bin/node
    Yarn: Not Found
    npm: 8.19.4 - /usr/bin/npm
  Browsers:
    Chrome: Not Found
  npmPackages:
    @emotion/react: ^11.11.1 => 11.11.1 
    @emotion/styled: ^11.11.0 => 11.11.0 
    @mui/base:  5.0.0-beta.12 
    @mui/core-downloads-tracker:  5.14.6 
    @mui/material: ^5.14.6 => 5.14.6 
    @mui/private-theming:  5.14.6 
    @mui/styled-engine:  5.14.6 
    @mui/styles: ^5.14.6 => 5.14.6 
    @mui/system: ^5.14.6 => 5.14.6 
    @mui/types:  7.2.4 
    @mui/utils:  5.14.6 
    @types/react:  18.2.21 
    react: 17.0.2 => 17.0.2 
    react-dom: 17.0.2 => 17.0.2 
@mj1910 mj1910 added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Aug 27, 2023
@mj12albert
Copy link
Member

@mj1910 Please provide a minimal repro for us to properly look at your issue, you can fork this template: https://mui.com/r/issue-template-latest

@mj12albert mj12albert added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Aug 28, 2023
@mj12albert mj12albert changed the title Uncaught SyntaxError: Identifier '_system' has already been declared. The console log shows the error for this line - var _system=require("@catalogexplorer$mui/system");var _styled=_interopRequireDefault(require("../styles/styled"));. This started after I upgraded to @mui v5 Uncaught SyntaxError: Identifier '_system' has already been declared Aug 28, 2023
@mj1910
Copy link
Author

mj1910 commented Aug 28, 2023 via email

@github-actions github-actions bot removed the status: waiting for author Issue with insufficient information label Aug 28, 2023
@mj12albert
Copy link
Member

@mj1910 I'm afraid I don't even know how/where to start without a proper repro 😅

@mj12albert mj12albert added the status: waiting for author Issue with insufficient information label Aug 28, 2023
@github-actions
Copy link

github-actions bot commented Sep 4, 2023

Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information.

@github-actions github-actions bot closed this as completed Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting for author Issue with insufficient information
Projects
None yet
Development

No branches or pull requests

2 participants