Skip to content

SyntaxError: In strict mode code, functions can only be declared at top level or immediately within another function. #25

@whtsky

Description

@whtsky
Encountered an error while minifying vendor.87087612.chunk.js:
SyntaxError: In strict mode code, functions can only be declared at top level or immediately within another function.
  44936 | 
  44937 | if (__DEV__) {
> 44938 |   function printWarning(format, args) {
        |  ^
  44939 |     var len = arguments.length;
  44940 |     args = new Array(len > 2 ? len - 2 : 0);
  44941 |     for (var key = 2; key < len; key++) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions