kriasoft / react-starter-kit

The web's most popular Jamstack front-end template (boilerplate) for building web applications with React
https://reactstarter.com
MIT License
22.71k stars 4.16k forks source link

Build issues on ubuntu 12.xx #191

Closed jamespsterling closed 3 years ago

jamespsterling commented 9 years ago

after doing npm install, running gulp produces the following:

ERROR in (undefined) ./src/router.js Module build failed: SyntaxError: /apps/yoggle/src/router.js: Unexpected token (16:30) 14 | const router = new Router(on => { 15 |

16 | on('*', async (state, next) => { | ^ 17 | const component = await next(); 18 | return component && {component}; 19 | });

ERROR in (undefined) ./src/server.js Module build failed: SyntaxError: /apps/yoggle/src/server.js: Unexpected token (29:39) 27 | const template = _.template(fs.readFileSync(templateFile, 'utf8')); 28 |

29 | server.get('*', async (req, res, next) => { | ^ 30 | try { 31 | let statusCode = 200; 32 | const data = { title: '', description: '', css: '', body: '' };

ERROR in ./src/router.js
Module build failed: SyntaxError: /apps/yoggle/src/router.js: Unexpected token (16:30)
  14 | const router = new Router(on => {
  15 |
> 16 |   on('*', async (state, next) => {
     |                               ^
  17 |     const component = await next();
  18 |     return component && <App context={state.context}>{component}</App>;
  19 |   });

ERROR in ./src/server.js
Module build failed: SyntaxError: /apps/yoggle/src/server.js: Unexpected token (29:39)
  27 | const template = _.template(fs.readFileSync(templateFile, 'utf8'));
  28 |
> 29 | server.get('*', async (req, res, next) => {
     |                                        ^
  30 |   try {
  31 |     let statusCode = 200;
  32 |     const data = { title: '', description: '', css: '', body: '' };

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

vladikoff commented 9 years ago

Gulp is no longer used, please try again with master branch

AmitMY commented 8 years ago

@jamespsterling Please revisit this issue, and close it if necessary. It seems to be fixed

ulani commented 3 years ago

@jamespsterling thank you very much for crating this issue! Unfortunately, we have close it due to inactivity. Feel free to re-open it or join our Discord channel for discussion.

NOTE: The main branch has been updated with React Starter Kit v2, using JAM-style architecture.