Skip to content
This repository was archived by the owner on Sep 7, 2020. It is now read-only.
This repository was archived by the owner on Sep 7, 2020. It is now read-only.

ModuleBuildError: Module build failed: SyntaxError: Unexpected token #965

@MoOx

Description

@MoOx

Recently (since yesterday), new install are broken with this kind of message

✔ ModuleBuildError: Module build failed: SyntaxError: Unexpected token (8:4)

   6 | const store = createStore(
   7 |   combineReducers(phenomicReducers),
>  8 |   { ...(typeof window !== "undefined") && window.__INITIAL_STATE__ },
     |     ^
   9 | )

This is due to latest babel-loader version (6.3.1). This PR babel/babel-loader#379 introduces a regression for us somehow.

See babel/babel-loader#381 for a resolution.

Meanwhile, use [email protected], not 6.3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions