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

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

Closed
MoOx opened this issue Feb 16, 2017 · 1 comment
Closed

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

MoOx opened this issue Feb 16, 2017 · 1 comment
Labels

Comments

@MoOx
Copy link
Owner

MoOx commented Feb 16, 2017

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 babel-loader@6.3.0, not 6.3.1

@MoOx
Copy link
Owner Author

MoOx commented Feb 16, 2017

Should be fixed by babel-loader@6.3.2

@MoOx MoOx closed this as completed Feb 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant