TGRHavoc / live_map

A FiveM addon for live maps
https://docs.tgrhavoc.co.uk/livemap-resource/
62 stars 38 forks source link

Error parsing script @live_map/dist/livemap.js in resource live_map: SyntaxError: Invalid or unexpected token #42

Closed DoJoMan18 closed 4 years ago

DoJoMan18 commented 4 years ago

Hello,

I'm getting an error when I start the livemap.

Error parsing script @live_map/dist/livemap.js in resource live_map: SyntaxError: Invalid or unexpected token
Failed to load script dist/livemap.js.
TGRHavoc commented 4 years ago

You tried packing the script manually?

DoJoMan18 commented 4 years ago

So I just did a reverse of a backup that I had laying around. Livemap is running without a error but it seems like the websocket port is closed for some reason. I do not have a firewall running at this time, and this happend after we moved from our server host. Do I have to install something extra on a ubuntu server?

Edit: I'm on version 2.3.2 at this moment. Config settings are like this:

set socket_port 30121
set livemap_debug "off" # "[all]" 'trace', 'debug', 'info', 'warn', 'error', 'fatal', 'off'
set blip_file "server01/blips.json"
set livemap_access_control "*"

start live_map
TGRHavoc commented 4 years ago

Could bump the debugging to info and see if the resource starts listening on the port you think it is.

DoJoMan18 commented 4 years ago

I fixed it while updating yarn and webpack.