Skip to content

JS Error: Uncaught SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode #1121

@Webkadabra

Description

@Webkadabra

Just updated to latest material-ui, and after I compile my app with WebPack, there is a JS error on a page:

Uncaught SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

Seems like problem is in file:

./~/material-ui/src/mixins/classable.js ***!

This line:

/** @jsx React.DOM /let React = webpack_require(/! react */ 2);

Please, advice, as I have a guess this is not what everyone else is experiencing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: systemThe system, the design tokens / styling foundations used across components. eg. @mui/system with MUI

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions