Skip to content

v3 beta build issues #1371

Closed
Closed
@CrocoDillon

Description

@CrocoDillon

I'm getting the following build error when using react-intl@3.0.0-beta.18:

ERROR in main.js from UglifyJs
Unexpected token: operator (>) [main.js:2913,57]

Which is

function utils_escape(str) {
    return ('' + str).replace(UNSAFE_CHARS_REGEX, match => utils_ESCAPED_CHARS[match.charCodeAt(0)]);
}

In addition, starting from react-intl@3.0.0-beta.16 I'm getting this error when running tests (Jest + Enzyme):

    C:\...\node_modules\intl-messageformat\core.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){export * from './lib/core';
                                                                                             ^^^^^^

    SyntaxError: Unexpected token export

It's not directly coming from react-intl but at least it's coming from a dependency which is upgraded in react-intl@3.0.0-beta.16.

If these are known issues I'm sorry for creating this bug report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions