TGRHavoc / live_map-interface

Web interface for the FiveM live_map addon
https://docs.tgrhavoc.co.uk/livemap-interface/
53 stars 30 forks source link

Uncaught Error: Cannot find module './init.js' #79

Closed matsn0w closed 3 years ago

matsn0w commented 3 years ago

Describe the bug Getting an error in the console when visiting index.html, page is not working properly. debug.html is working fine.

To Reproduce Steps to reproduce the behavior:

  1. Download release 4.1.5 from here
  2. Go to index.html
  3. Watch the browser console

Expected behavior Find the needed filesssss and wooooork XD

Screenshots image

Desktop (please complete the following information):

Possible Solution I guess main.js isn't compiled properly?

Additional context/Screenshots Tried doing the same with v4.1.4, that was working perfectly fine ;)

TGRHavoc commented 3 years ago

Think it was Browserify that was causing the build to come out corrupt (even though I haven't changed any of the config).

So, i've moved over to Parcel.JS for bundling the main code together. Sticking with gulp as the build system (and concating the parcel bundle with the vendor files for a single JS file).

Should be fixed with next release :)

TGRHavoc commented 3 years ago

@matsn0w If you want to test https://github.com/TGRHavoc/live_map-interface/releases/tag/v4.1.6 for me and make sure it works on your system, that would be awesome 😄

TGRHavoc commented 3 years ago

@all-contributors please add @matsn0w for bug

allcontributors[bot] commented 3 years ago

@TGRHavoc

I've put up a pull request to add @matsn0w! :tada:

TGRHavoc commented 3 years ago

/cc @StrikersGamingTV : might have been the same issue you were having with the main page not loading.

matsn0w commented 3 years ago

@matsn0w If you want to test https://github.com/TGRHavoc/live_map-interface/releases/tag/v4.1.6 for me and make sure it works on your system, that would be awesome 😄

Like a charmio! Thanks a lot :)