Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

built failed: Nodejs 6.9.1 in Ubuntu 16.10 #40

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

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

@nicksp nicksp closed this as completed Jun 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants