grommet/grommet-ferret

Application start up issue

Closed this issue · 8 comments

After the $ npm install, I am able to start the dev env using $ gulp dev ...
but when I open the browser, I get this error:

Uncaught SyntaxError: Unexpected token <

Upon inspection, it is reporting the first line in Index.js

image

My versions are:
Node - v5.10.1
Npm - 3.8.3

Please help!

can you provide the logs in the command line?

But first let me fix and move ferret to use grommet-toolbox

can you try again with the latest ferret?

Hi Alan, I tried again after your latest change but still the same error.

I also get this error as there is no dist folder for this project; and when I tried copying the "dist" folder from another project, I get the error, as above: "Uncaught SyntaxError: Unexpected token <"

Error: ENOENT: no such file or directory, stat '/home/karthick/grommet-ferret/dist/index.html'
at Error (native)

Hope this gives you more info to correct me what I am doing wrong and help fix. Thanks.

@karthicktv are you still seeing this issue, and if so, how you're trying to run the ferret application? It appears the index.js file has HTML content which should not be the case.

Closing for now.

To anyone still struggling with this, build the application and then start.

> NODE_ENV=production grommet pack
> npm start
Hope this helps :)