• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

[Solved] error: [meta/js] Could not compile client-side scripts! Unexpected character

Scheduled Pinned Locked Moved General Discussion
client-sideerrornodebb
6 Posts 4 Posters 3.1k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • kimmanuelK Offline
    kimmanuelK Offline
    kimmanuel
    wrote on last edited by kimmanuel
    #1

    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?

    A 1 Reply Last reply
    1
  • A Offline
    A Offline
    a_5mith
    replied to kimmanuel on last edited by a_5mith
    #2

    @kimmanuel

    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.

    1 Reply Last reply
    0
  • A Offline
    A Offline
    a_5mith
    replied to Guest on last edited by
    #3

    @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.

    1 Reply Last reply
    1
  • invisionI Offline
    invisionI Offline
    invision
    wrote on last edited by
    #4

    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.

    A barisB 2 Replies Last reply
    1
  • A Offline
    A Offline
    a_5mith
    replied to invision on last edited by
    #5

    @invision said:

    Turns out, that Mac

    Sounds like you need

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    replied to invision on last edited by
    #6

    @invision Sounds like we need to filter those files.

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development