Open AndiLfl opened 3 years ago
Error Code: altv-radio-master\server\server.js:1 import * as alt from 'alt';
altv-radio-master\server\server.js:1 import * as alt from 'alt';
happened for 2 people on altv discord. https://discordapp.com/channels/371265202378899476/547079158300147725/731338487118168125
We found following solutions:
Rename files from .js to .mjs.
Just add "type": "module", to your package.json, don't need a rename anything.
And if u need a require() functionality, just set .cjs file extention to your js file.
@AndiLfl is issue still persist?
Error Code:
altv-radio-master\server\server.js:1 import * as alt from 'alt';
happened for 2 people on altv discord. https://discordapp.com/channels/371265202378899476/547079158300147725/731338487118168125
We found following solutions:
Rename files from .js to .mjs.