leNicDev / altv-typescript-starter

An alt:V TypeScript starter project
4 stars 1 forks source link

Client not working #1

Open MMaier96 opened 5 years ago

MMaier96 commented 5 years ago

Hey,

I imported your project and compiled it. Server is working fine but the client is not working. Ingame when loading the resource for my client im getting this error:

[18:44:56][Error] ReferenceError: parcelRequire is not defined at parcelRequire.LSRl (client/startup.js:1:1001) at client/startup.js:1:1023

Any ideas? :/

Kind regards Marcel

ithr0n commented 4 years ago

Parcel does not support ES modules, see: https://github.com/parcel-bundler/parcel/issues/1401

Would be interesting how @leNicDev made it work for him. Probably by manually fix the output file and put var or const in first line.

leNicDev commented 4 years ago

Just updated the project. With that support for TypeScript 3.9 and the offical @altv/* types has been added.