Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

built failed: Nodejs 6.9.1 in Ubuntu 16.10 #40

Open
Hacalox opened this issue Nov 28, 2016 · 0 comments
Open

built failed: Nodejs 6.9.1 in Ubuntu 16.10 #40

Hacalox opened this issue Nov 28, 2016 · 0 comments

Comments

@Hacalox
Copy link

Hacalox commented Nov 28, 2016

I'm running nodejs(6.9.1) and npm(4.0.2) which are last stable versions available.
I have run this project in 2 different machines, one has a mac OS(el capitan) and the other has Ubuntu 16.10 installed.
Both are running the same npm and nodejs version.
Somehow when I run npm run build/start in the mac everything is fine but in the Linux one I get this error:

ERROR in ./src/client/assets/javascripts/app/index.js
Module build failed: SyntaxError: Unexpected token (22:2)

>   20 | // Render the React application to the DOM
>   21 | render(
> > 22 |   <AppContainer errorReporter={Redbox}>
>      |   ^
>   23 |     <Root store={store} history={history} />
>   24 |   </AppContainer>,
>   25 |   rootEl
> 

This is what fails in those npm run commands:
cross-env NODE_ENV=production webpack --config ./config/webpack.config.production.js --progress

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant