[Solved] error: [meta/js] Could not compile client-side scripts! Unexpected character
kimmanuel last edited by kimmanuel
When I'm running NodeBB, an error prompted me this:
"error: [meta/js] Could not compile client-side scripts! Unexpected character ''
Anyone who encountered this kind of error?
Have you added any custom js files to your nodebb install?
The error you're getting means that your js files have an additional character that isn't needed. Possibly a comma at the end of a function or something like that.
It should only be in one file, you can try running
./nodebb dev, that might allow you to see a better idea of where the error in the code is.
@kimmanuel Let us know if you get it solved. Or if you spot any other errors you don't recognise, post them here and we'll take a look.
invision last edited by
Bumped into the same issue recently. Turns out, that Mac had created '.DS_Store ' file inside client's scripts folder and /meta/js.js is looping through all files upon launching the nodebb server. Including .DS_Store. And that causes [meta/js] Could not compile client-side scripts! Unexpected character.
Solution was: search for and remove all '.DS_Store' files everywhere from /public folder.
Turns out, that Mac
Sounds like you need
baris last edited by
@invision Sounds like we need to filter those files.