f1-telemetry-client icon indicating copy to clipboard operation
f1-telemetry-client copied to clipboard

Module parse failed: Unexpected token

Open iamisti opened this issue 2 years ago • 1 comments

I've get the following error when i'm trying to use this library. Any idea why and how I could fix it?

Module parse failed: Unexpected token (43:8)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

|  */
| class F1TelemetryClient extends events_1.EventEmitter {
>     port;
|     bigintEnabled;
|     forwardAddresses;

iamisti avatar Sep 27 '21 11:09 iamisti

I think it would help if you guys parse your build to ES5 instead of ES6

iamisti avatar Oct 09 '21 03:10 iamisti