Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
This repository has been archived by the owner on Mar 9, 2018. It is now read-only.

Error when viewing Index #250

Closed
HE-is opened this issue Aug 22, 2017 · 3 comments
Closed

Error when viewing Index #250

HE-is opened this issue Aug 22, 2017 · 3 comments
Labels

Comments

@HE-is
Copy link

HE-is commented Aug 22, 2017

I'm not quite sure what I'm missing, sorry to bother again with a diminutive noob question.
I have tried to deploy to my production vps host, which is Ubuntu 16.04. Everything installs fine (pertaining to nodejs) as far as I can tell. When I try to navigate to the index, it gives me this error:

Debug: internal, implementation, error 
    SyntaxError: /home/test/aqua/server/web/home/index.jsx: Unexpected token (10:21)
   8 |     render() {
   9 | 
> 10 |         const neck = <link rel='stylesheet' href="/public/pages/home.min.css" />;
     |                      ^
  11 | 
  12 |         return (
  13 |             <Layout
    at Parser.pp$5.raise (/home/test/aqua/node_modules/babylon/lib/index.js:4454:13)
    at Parser.pp.unexpected (/home/test/aqua/node_modules/babylon/lib/index.js:1761:8)
    at Parser.pp$3.parseExprAtom (/home/test/aqua/node_modules/babylon/lib/index.js:3750:12)
    at Parser.pp$3.parseExprSubscripts (/home/test/aqua/node_modules/babylon/lib/index.js:3494:19)
    at Parser.pp$3.parseMaybeUnary (/home/test/aqua/node_modules/babylon/lib/index.js:3474:19)
    at Parser.pp$3.parseExprOps (/home/test/aqua/node_modules/babylon/lib/index.js:3404:19)
    at Parser.pp$3.parseMaybeConditional (/home/test/aqua/node_modules/babylon/lib/index.js:3381:19)
    at Parser.pp$3.parseMaybeAssign (/home/test/aqua/node_modules/babylon/lib/index.js:3344:19)
    at Parser.pp$1.parseVar (/home/test/aqua/node_modules/babylon/lib/index.js:2340:24)
    at Parser.pp$1.parseVarStatement (/home/test/aqua/node_modules/babylon/lib/index.js:2169:8)

Is this something to do with JSX not being accepted? (babel?)
Thanks in advance! ^_^

@jedireza
Copy link
Owner

You probably don't have dev dependencies installed.

https://github.com/jedireza/aqua#running-in-production

NPM_CONFIG_PRODUCTION=false - This tells $ npm install to not skip installing devDependencies, which we need to build the front-end files.

@jedireza
Copy link
Owner

After you set that you'll need to $ npm install again.

@HE-is
Copy link
Author

HE-is commented Aug 23, 2017

Thanks! Working now!! ^_^

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

2 participants