trakt-tools / universal-trakt-scrobbler

MIT License
560 stars 54 forks source link

Disney +, Hulu, Apple TV support #103

Open husk007 opened 3 years ago

husk007 commented 3 years ago

Hi, The project looks great. I have been waiting a long time for such a solution that allows to combine many streaming services with trakt.tv. Do you plan to integrate with Disney +, Hulu, Apple TV +? Or maybe there is also a chance for some Polish websites? https://hbogo.pl/ https://player.pl/ https://polsatboxgo.pl/

ITSYV commented 3 years ago

Hi Husk

Are those services free to watch if you're a Polish resident? (I'm Belgian) I can try to add them myself, as @rafaelgomesxyz made an easy way to do so. Or if you're a bit familiar with code you can always do it yourself. ( https://github.com/trakt-tools/universal-trakt-scrobbler#how-to-add-more-streaming-services )

If they're free to watch, I can try to make an account with a VPN. If not, I can always try to do the setup, but you'll have to test it out yourself (or provide some login data to use temporary so I can test it).

husk007 commented 3 years ago

Hi, Services: https://player.pl/ https://polsatboxgo.pl/ are free to watch if you're a Polish resident. Use VPN and register. https://hbogo.pl/ requires a paid subscription and you must log in from Poland. As for your question if I am familiar with code, not completely, but there is no obstacle for me to become familiar. I just need time.

At the moment I have a problem with building. Log attached. Maybe you can tell me what I am doing wrong or where the problem is.

PS C:\Users\slabuszewskierwin\uts> npm run build

> universal-trakt-scrobbler@1.0.0 build C:\Users\slabuszewskierwin\uts
> webpack --env production

assets by status 105 KiB [cached] 24 assets
runtime modules 6.89 KiB 29 modules
orphan modules 9.27 KiB [orphan] 3 modules
javascript modules 16.1 KiB
  modules with errors 1.07 KiB [errors]
    modules by path ./src/common/*.ts 507 bytes 13 modules
    modules by path ./src/services/ 390 bytes 10 modules
    modules by path ./src/modules/ 156 bytes 4 modules
    ./src/apis/TraktAuth.ts 39 bytes [built] [code generated] [1 error]
asset modules 252 bytes (javascript) 5.61 KiB (asset)
  ./src/images/uts-icon-128.png 42 bytes (javascript) 2.65 KiB (asset) [built] [code generated]
  ./src/images/uts-icon-16.png 42 bytes (javascript) 447 bytes (asset) [built] [code generated]
  ./src/images/uts-icon-19.png 42 bytes (javascript) 595 bytes (asset) [built] [code generated]
  ./src/images/uts-icon-38.png 42 bytes (javascript) 1.01 KiB (asset) [built] [code generated]
  ./src/images/uts-icon-selected-19.png 42 bytes (javascript) 359 bytes (asset) [built] [code generated]
  ./src/images/uts-icon-selected-38.png 42 bytes (javascript) 596 bytes (asset) [built] [code generated]

ERROR in ./src/apis/TraktAuth.ts
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: C:\Users\slabuszewskierwin\uts\src\apis\TraktAuth.ts: Support for the experimental syntax 'flow' isn't currently enabled (10:8):

   8 | import browser from 'webextension-polyfill';
   9 |
> 10 | export type TraktManualAuth = {
     |        ^
  11 |  callback?: PromiseResolve<TraktAuthDetails>;
  12 |  tabId?: number;
  13 | };

Add @babel/preset-flow (https://git.io/JfeDn) to the 'presets' section of your Babel config to enable transformation.
If you want to leave it as-is, add @babel/plugin-syntax-flow (https://git.io/vb4yb) to the 'plugins' section to enable parsing.
    at Parser._raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:147:45)
    at Parser.raiseWithData (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:142:17)
    at Parser.expectOnePlugin (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\util.js:208:18)
    at Parser.isExportDefaultSpecifier (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1962:16)
    at Parser.maybeParseExportDefaultSpecifier (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1839:14)
    at Parser.parseExport (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1784:29)
    at Parser.parseStatementContent (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:340:25)
    at Parser.parseStatement (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:242:17)
    at Parser.parseBlockOrModuleBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:980:25)
    at Parser.parseBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:956:10)
 @ ./src/modules/background/background.ts 5:0-44 65:11-34 68:11-37 71:11-30 74:11-32

ERROR in ./src/common/AutoSync.ts
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: C:\Users\slabuszewskierwin\uts\src\common\AutoSync.ts: Unexpected token (17:15)

  15 | class _AutoSync {
  16 |  isChecking = false;
> 17 |  checkTimeoutId: number | null = null;
     |                ^
  18 |
  19 |  init() {
  20 |          void this.check();
    at Parser._raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:147:45)
    at Parser.raiseWithData (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:142:17)
    at Parser.raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:91:17)
    at Parser.unexpected (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\util.js:190:16)
    at Parser.parseClassMemberWithIsStatic (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1594:12)
    at Parser.parseClassMember (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1421:10)
    at callback (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1339:14)
    at Parser.withSmartMixTopicForbiddingContext (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:2838:14)
    at Parser.parseClassBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1315:10)
    at Parser.parseClass (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1274:22)
 @ ./src/modules/background/background.ts 6:0-44 41:12-25

ERROR in ./src/common/BrowserAction.ts
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: C:\Users\slabuszewskierwin\uts\src\common\BrowserAction.ts: Support for the experimental syntax 'flow' isn't currently enabled (6:8):

  4 | import browser, { Action as WebExtAction } from 'webextension-polyfill';
  5 |
> 6 | export interface BrowserActionRotating {
    |        ^
  7 |   image: HTMLImageElement | null;
  8 |   canvas: HTMLCanvasElement | null;
  9 |   context: CanvasRenderingContext2D | null;

Add @babel/preset-flow (https://git.io/JfeDn) to the 'presets' section of your Babel config to enable transformation.
If you want to leave it as-is, add @babel/plugin-syntax-flow (https://git.io/vb4yb) to the 'plugins' section to enable parsing.
    at Parser._raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:147:45)
    at Parser.raiseWithData (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:142:17)
    at Parser.expectOnePlugin (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\util.js:208:18)
    at Parser.isExportDefaultSpecifier (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1962:16)
    at Parser.maybeParseExportDefaultSpecifier (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1839:14)
    at Parser.parseExport (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1784:29)
    at Parser.parseStatementContent (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:340:25)
    at Parser.parseStatement (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:242:17)
    at Parser.parseBlockOrModuleBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:980:25)
    at Parser.parseBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:956:10)
 @ ./src/modules/background/background.ts 7:0-54 35:12-30 80:11-33 83:11-38 86:11-40 89:11-40 92:11-38

ERROR in ./src/common/BrowserStorage.ts
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: C:\Users\slabuszewskierwin\uts\src\common\BrowserStorage.ts: Support for the experimental syntax 'flow' isn't currently enabled (18:8):

  16 | import browser, { Manifest as WebExtManifest } from 'webextension-polyfill';
  17 |
> 18 | export type StorageValues = StorageValuesV7;
     |        ^
  19 | export type StorageValuesOptions = StorageValuesOptionsV3;
  20 | export type StorageValuesSyncOptions = StorageValuesSyncOptionsV3;
  21 |

Add @babel/preset-flow (https://git.io/JfeDn) to the 'presets' section of your Babel config to enable transformation.
If you want to leave it as-is, add @babel/plugin-syntax-flow (https://git.io/vb4yb) to the 'plugins' section to enable parsing.
    at Parser._raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:147:45)
    at Parser.raiseWithData (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:142:17)
    at Parser.expectOnePlugin (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\util.js:208:18)
    at Parser.isExportDefaultSpecifier (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1962:16)
    at Parser.maybeParseExportDefaultSpecifier (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1839:14)
    at Parser.parseExport (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1784:29)
    at Parser.parseStatementContent (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:340:25)
    at Parser.parseStatement (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:242:17)
    at Parser.parseBlockOrModuleBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:980:25)
    at Parser.parseBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:956:10)
 @ ./src/modules/background/background.ts 8:0-56 32:19-38

ERROR in ./src/common/Cache.ts
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: C:\Users\slabuszewskierwin\uts\src\common\Cache.ts: Support for the experimental syntax 'flow' isn't currently enabled (10:8):

   8 | import { SavedTraktItem } from '@models/TraktItem';
   9 |
> 10 | export type CacheItems<T extends (keyof CacheValues)[]> = {
     |        ^
  11 |  [K in T[number]]: CacheItem<K>;
  12 | };
  13 |

Add @babel/preset-flow (https://git.io/JfeDn) to the 'presets' section of your Babel config to enable transformation.
If you want to leave it as-is, add @babel/plugin-syntax-flow (https://git.io/vb4yb) to the 'plugins' section to enable parsing.
    at Parser._raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:147:45)
    at Parser.raiseWithData (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:142:17)
    at Parser.expectOnePlugin (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\util.js:208:18)
    at Parser.isExportDefaultSpecifier (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1962:16)
    at Parser.maybeParseExportDefaultSpecifier (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1839:14)
    at Parser.parseExport (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1784:29)
    at Parser.parseStatementContent (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:340:25)
    at Parser.parseStatement (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:242:17)
    at Parser.parseBlockOrModuleBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:980:25)
    at Parser.parseBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:956:10)
 @ ./src/modules/background/background.ts 9:0-38 40:12-22

ERROR in ./src/common/Errors.ts
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: C:\Users\slabuszewskierwin\uts\src\common\Errors.ts: Unexpected token (14:8)

  12 |
  13 | class _Errors {
> 14 |  rollbar?: Rollbar;
     |         ^
  15 |
  16 |  init() {
  17 |          this.checkRollbar();
    at Parser._raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:147:45)
    at Parser.raiseWithData (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:142:17)
    at Parser.raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:91:17)
    at Parser.unexpected (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\util.js:190:16)
    at Parser.parseClassMemberWithIsStatic (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1594:12)
    at Parser.parseClassMember (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1421:10)
    at callback (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1339:14)
    at Parser.withSmartMixTopicForbiddingContext (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:2838:14)
    at Parser.parseClassBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1315:10)
    at Parser.parseClass (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1274:22)
 @ ./src/modules/background/background.ts 10:0-40 36:12-23

ERROR in ./src/common/Messaging.ts
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: C:\Users\slabuszewskierwin\uts\src\common\Messaging.ts: Support for the experimental syntax 'flow' isn't currently enabled (9:8):

   7 | import browser, { Runtime as WebExtRuntime, Tabs as WebExtTabs } from 'webextension-polyfill';
   8 |
>  9 | export type MessageRequest = MessageRequests[keyof MessageRequests];
     |        ^
  10 |
  11 | export interface MessageRequests {
  12 |  'open-tab': OpenTabMessage;

Add @babel/preset-flow (https://git.io/JfeDn) to the 'presets' section of your Babel config to enable transformation.
If you want to leave it as-is, add @babel/plugin-syntax-flow (https://git.io/vb4yb) to the 'plugins' section to enable parsing.
    at Parser._raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:147:45)
    at Parser.raiseWithData (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:142:17)
    at Parser.expectOnePlugin (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\util.js:208:18)
    at Parser.isExportDefaultSpecifier (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1962:16)
    at Parser.maybeParseExportDefaultSpecifier (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1839:14)
    at Parser.parseExport (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1784:29)
    at Parser.parseStatementContent (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:340:25)
    at Parser.parseStatement (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:242:17)
    at Parser.parseBlockOrModuleBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:980:25)
    at Parser.parseBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:956:10)
 @ ./src/modules/background/background.ts 11:0-46 42:12-26 57:0-21 98:11-33

ERROR in ./src/common/Notifications.ts
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: C:\Users\slabuszewskierwin\uts\src\common\Notifications.ts: Unexpected token (17:13)

  15 |
  16 | class _Notifications {
> 17 |  messageNames: Record<number, MessageName>;
     |              ^
  18 |  private hasAddedListeners = false;
  19 |
  20 |  constructor() {
    at Parser._raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:147:45)
    at Parser.raiseWithData (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:142:17)
    at Parser.raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:91:17)
    at Parser.unexpected (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\util.js:190:16)
    at Parser.parseClassMemberWithIsStatic (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1594:12)
    at Parser.parseClassMember (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1421:10)
    at callback (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1339:14)
    at Parser.withSmartMixTopicForbiddingContext (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:2838:14)
    at Parser.parseClassBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1315:10)
    at Parser.parseClass (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1274:22)
 @ ./src/modules/background/background.ts 12:0-54 37:12-30 95:11-29

ERROR in ./src/common/Requests.ts
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: C:\Users\slabuszewskierwin\uts\src\common\Requests.ts: Support for the experimental syntax 'flow' isn't currently enabled (10:8):

   8 | import browser, { WebRequest as WebExtWebRequest } from 'webextension-polyfill';
   9 |
> 10 | export interface RequestErrorOptions {
     |        ^
  11 |  request?: RequestDetails;
  12 |  status?: number;
  13 |  text?: string;

Add @babel/preset-flow (https://git.io/JfeDn) to the 'presets' section of your Babel config to enable transformation.
If you want to leave it as-is, add @babel/plugin-syntax-flow (https://git.io/vb4yb) to the 'plugins' section to enable parsing.
    at Parser._raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:147:45)
    at Parser.raiseWithData (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:142:17)
    at Parser.expectOnePlugin (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\util.js:208:18)
    at Parser.isExportDefaultSpecifier (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1962:16)
    at Parser.maybeParseExportDefaultSpecifier (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1839:14)
    at Parser.parseExport (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1784:29)
    at Parser.parseStatementContent (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:340:25)
    at Parser.parseStatement (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:242:17)
    at Parser.parseBlockOrModuleBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:980:25)
    at Parser.parseBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:956:10)
 @ ./src/modules/background/background.ts 13:0-44 38:12-25 77:11-24

ERROR in ./src/common/ScriptInjector.ts
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: C:\Users\slabuszewskierwin\uts\src\common\ScriptInjector.ts: Support for the experimental syntax 'flow' isn't currently enabled (14:8):

  12 | import browser, { Manifest as WebExtManifest, Tabs as WebExtTabs } from 'webextension-polyfill';
  13 |
> 14 | export interface ScriptInjectorMessage {
     |        ^
  15 |  serviceId: string;
  16 |  key: string;
  17 |  url: string;

Add @babel/preset-flow (https://git.io/JfeDn) to the 'presets' section of your Babel config to enable transformation.
If you want to leave it as-is, add @babel/plugin-syntax-flow (https://git.io/vb4yb) to the 'plugins' section to enable parsing.
    at Parser._raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:147:45)
    at Parser.raiseWithData (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:142:17)
    at Parser.expectOnePlugin (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\util.js:208:18)
    at Parser.isExportDefaultSpecifier (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1962:16)
    at Parser.maybeParseExportDefaultSpecifier (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1839:14)
    at Parser.parseExport (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1784:29)
    at Parser.parseStatementContent (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:340:25)
    at Parser.parseStatement (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:242:17)
    at Parser.parseBlockOrModuleBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:980:25)
    at Parser.parseBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:956:10)
 @ ./src/modules/background/background.ts 14:0-56 39:12-31

ERROR in ./src/common/ScrobbleParser.ts
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: C:\Users\slabuszewskierwin\uts\src\common\ScrobbleParser.ts: Support for the experimental syntax 'flow' isn't currently enabled (5:8):

  3 | import { Item, SavedItem } from '@models/Item';
  4 |
> 5 | export interface ScrobbleParserOptions {
    |        ^
  6 |   /**
  7 |    * The selector for the video player, if any.
  8 |    *

Add @babel/preset-flow (https://git.io/JfeDn) to the 'presets' section of your Babel config to enable transformation.
If you want to leave it as-is, add @babel/plugin-syntax-flow (https://git.io/vb4yb) to the 'plugins' section to enable parsing.
    at Parser._raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:147:45)
    at Parser.raiseWithData (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:142:17)
    at Parser.expectOnePlugin (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\util.js:208:18)
    at Parser.isExportDefaultSpecifier (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1962:16)
    at Parser.maybeParseExportDefaultSpecifier (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1839:14)
    at Parser.parseExport (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1784:29)
    at Parser.parseStatementContent (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:340:25)
    at Parser.parseStatement (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:242:17)
    at Parser.parseBlockOrModuleBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:980:25)
    at Parser.parseBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:956:10)
 @ ./src/services/netflix/NetflixParser.ts 20:0-56 36:2-16
 @ ./src/services/netflix/netflix.ts 1:0-33

ERROR in ./src/common/Session.ts
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: C:\Users\slabuszewskierwin\uts\src\common\Session.ts: Unexpected token (7:11)

   5 |
   6 | class _Session {
>  7 |  isLoggedIn: boolean;
     |            ^
   8 |
   9 |  constructor() {
  10 |          this.isLoggedIn = false;
    at Parser._raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:147:45)
    at Parser.raiseWithData (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:142:17)
    at Parser.raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:91:17)
    at Parser.unexpected (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\util.js:190:16)
    at Parser.parseClassMemberWithIsStatic (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1594:12)
    at Parser.parseClassMember (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1421:10)
    at callback (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1339:14)
    at Parser.withSmartMixTopicForbiddingContext (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:2838:14)
    at Parser.parseClassBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1315:10)
    at Parser.parseClass (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1274:22)
 @ ./src/modules/content/trakt/trakt.ts 5:0-42 14:19-38

ERROR in ./src/common/Tabs.ts
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: C:\Users\slabuszewskierwin\uts\src\common\Tabs.ts: Support for the experimental syntax 'flow' isn't currently enabled (6:8):

  4 | import browser, { Tabs as WebExtTabs } from 'webextension-polyfill';
  5 |
> 6 | export interface TabProperties {
    |        ^
  7 |   active?: boolean;
  8 |   cookieStoreId?: string;
  9 |   index?: number;

Add @babel/preset-flow (https://git.io/JfeDn) to the 'presets' section of your Babel config to enable transformation.
If you want to leave it as-is, add @babel/plugin-syntax-flow (https://git.io/vb4yb) to the 'plugins' section to enable parsing.
    at Parser._raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:147:45)
    at Parser.raiseWithData (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:142:17)
    at Parser.expectOnePlugin (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\util.js:208:18)
    at Parser.isExportDefaultSpecifier (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1962:16)
    at Parser.maybeParseExportDefaultSpecifier (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1839:14)
    at Parser.parseExport (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1784:29)
    at Parser.parseStatementContent (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:340:25)
    at Parser.parseStatement (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:242:17)
    at Parser.parseBlockOrModuleBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:980:25)
    at Parser.parseBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:956:10)
 @ ./src/modules/background/background.ts 16:0-36 59:11-20

ERROR in ./src/modules/content/service/service.ts
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: C:\Users\slabuszewskierwin\uts\src\modules\content\service\service.ts: Unexpected token, expected "," (10:36)

   8 | import { Shared } from '@common/Shared';
   9 |
> 10 | export const init = async (serviceId: string) => {
     |                                     ^
  11 |  Shared.pageType = 'content';
  12 |  await BrowserStorage.init();
  13 |  Errors.init();
    at Parser._raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:147:45)
    at Parser.raiseWithData (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:142:17)
    at Parser.raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:91:17)
    at Parser.unexpected (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\util.js:190:16)
    at Parser.expect (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\util.js:150:28)
    at Parser.parseCallExpressionArguments (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:976:14)
    at Parser.parseCoverCallAndAsyncArrowHead (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:853:29)
    at Parser.parseSubscript (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:733:19)
    at Parser.parseSubscripts (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:690:19)
    at Parser.parseExprSubscripts (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:675:17)
 @ ./src/services/amazon-prime/amazon-prime.ts 2:0-32 3:5-9

ERROR in ./src/modules/history/history.tsx
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: C:\Users\slabuszewskierwin\uts\src\modules\history\history.tsx: Support for the experimental syntax 'jsx' isn't currently enabled (19:3):

  17 |  const root = document.querySelector('#root');
  18 |  ReactDOM.render(
> 19 |          <AppWrapper usesHistory={true} usesSession={true}>
     |          ^
  20 |                  <GlobalStyles
  21 |                          styles={{
  22 |                                  html: {

Add @babel/preset-react (https://git.io/JfeDR) to the 'presets' section of your Babel config to enable transformation.
If you want to leave it as-is, add @babel/plugin-syntax-jsx (https://git.io/vb4yA) to the 'plugins' section to enable parsing.
    at Parser._raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:147:45)
    at Parser.raiseWithData (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:142:17)
    at Parser.expectOnePlugin (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\util.js:208:18)
    at Parser.parseExprAtom (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:1304:18)
    at Parser.parseExprSubscripts (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:669:23)
    at Parser.parseUpdate (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:649:21)
    at Parser.parseMaybeUnary (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:620:23)
    at Parser.parseMaybeUnaryOrPrivate (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:369:14)
    at Parser.parseExprOps (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:379:23)
    at Parser.parseMaybeConditional (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:337:23)

ERROR in ./src/modules/options/options.tsx
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: C:\Users\slabuszewskierwin\uts\src\modules\options\options.tsx: Support for the experimental syntax 'jsx' isn't currently enabled (16:3):

  14 |  const root = document.querySelector('#root');
  15 |  ReactDOM.render(
> 16 |          <AppWrapper usesHistory={false} usesSession={false}>
     |          ^
  17 |                  <OptionsApp />
  18 |          </AppWrapper>,
  19 |          root

Add @babel/preset-react (https://git.io/JfeDR) to the 'presets' section of your Babel config to enable transformation.
If you want to leave it as-is, add @babel/plugin-syntax-jsx (https://git.io/vb4yA) to the 'plugins' section to enable parsing.
    at Parser._raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:147:45)
    at Parser.raiseWithData (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:142:17)
    at Parser.expectOnePlugin (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\util.js:208:18)
    at Parser.parseExprAtom (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:1304:18)
    at Parser.parseExprSubscripts (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:669:23)
    at Parser.parseUpdate (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:649:21)
    at Parser.parseMaybeUnary (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:620:23)
    at Parser.parseMaybeUnaryOrPrivate (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:369:14)
    at Parser.parseExprOps (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:379:23)
    at Parser.parseMaybeConditional (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:337:23)

ERROR in ./src/modules/popup/popup.tsx
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: C:\Users\slabuszewskierwin\uts\src\modules\popup\popup.tsx: Support for the experimental syntax 'jsx' isn't currently enabled (18:3):

  16 |  const root = document.querySelector('#root');
  17 |  ReactDOM.render(
> 18 |          <AppWrapper usesHistory={true} usesSession={true}>
     |          ^
  19 |                  <PopupApp />
  20 |          </AppWrapper>,
  21 |          root

Add @babel/preset-react (https://git.io/JfeDR) to the 'presets' section of your Babel config to enable transformation.
If you want to leave it as-is, add @babel/plugin-syntax-jsx (https://git.io/vb4yA) to the 'plugins' section to enable parsing.
    at Parser._raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:147:45)
    at Parser.raiseWithData (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:142:17)
    at Parser.expectOnePlugin (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\util.js:208:18)
    at Parser.parseExprAtom (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:1304:18)
    at Parser.parseExprSubscripts (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:669:23)
    at Parser.parseUpdate (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:649:21)
    at Parser.parseMaybeUnary (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:620:23)
    at Parser.parseMaybeUnaryOrPrivate (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:369:14)
    at Parser.parseExprOps (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:379:23)
    at Parser.parseMaybeConditional (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:337:23)

ERROR in ./src/services/amazon-prime/AmazonPrimeParser.ts
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: C:\Users\slabuszewskierwin\uts\src\services\amazon-prime\AmazonPrimeParser.ts: Unexpected token, expected "," (13:17)

  11 |  }
  12 |
> 13 |  onClick = (event: Event) => {
     |                  ^
  14 |          const targetElement = event.target as HTMLElement | null;
  15 |          if (!targetElement) {
  16 |                  return;
    at Parser._raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:147:45)
    at Parser.raiseWithData (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:142:17)
    at Parser.raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:91:17)
    at Parser.unexpected (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\util.js:190:16)
    at Parser.expect (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\util.js:150:28)
    at Parser.parseParenAndDistinguishExpression (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:1657:14)
    at Parser.parseExprAtom (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:1164:21)
    at Parser.parseExprSubscripts (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:669:23)
    at Parser.parseUpdate (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:649:21)
    at Parser.parseMaybeUnary (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\expression.js:620:23)
 @ ./src/services/amazon-prime/amazon-prime.ts 1:0-42

ERROR in ./src/services/disneyplus/DisneyplusParser.ts
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: C:\Users\slabuszewskierwin\uts\src\services\disneyplus\DisneyplusParser.ts: Missing semicolon. (20:22)

  18 |          const type = subTitleElement?.textContent ? 'show' : 'movie';
  19 |
> 20 |          let seasonAndEpisode: string | null = null;
     |                              ^
  21 |          let seasonStr: string | null = null;
  22 |          let episodeStr: string | null = null;
  23 |          let subTitle: string | undefined = undefined;
    at Parser._raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:147:45)
    at Parser.raiseWithData (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:142:17)
    at Parser.raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:91:17)
    at Parser.semicolon (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\util.js:143:10)
    at Parser.parseVarStatement (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:805:10)
    at Parser.parseStatementContent (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:302:21)
    at Parser.parseStatement (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:242:17)
    at Parser.parseBlockOrModuleBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:980:25)
    at Parser.parseBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:956:10)
    at Parser.parseBlock (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:926:10)
 @ ./src/services/disneyplus/disneyplus.ts 1:0-39

ERROR in ./src/services/goplay-be/GoplayBeParser.ts
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: C:\Users\slabuszewskierwin\uts\src\services\goplay-be\GoplayBeParser.ts: Missing semicolon. (16:15)

  14 |          const titleElement = document.querySelector('title');
  15 |          const id = this.parseItemIdFromUrl();
> 16 |          let showTitle: string | null = null;
     |                       ^
  17 |          let seasonId: string | null = null;
  18 |          let episodeId: string | null = null;
  19 |
    at Parser._raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:147:45)
    at Parser.raiseWithData (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:142:17)
    at Parser.raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:91:17)
    at Parser.semicolon (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\util.js:143:10)
    at Parser.parseVarStatement (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:805:10)
    at Parser.parseStatementContent (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:302:21)
    at Parser.parseStatement (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:242:17)
    at Parser.parseBlockOrModuleBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:980:25)
    at Parser.parseBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:956:10)
    at Parser.parseBlock (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:926:10)
 @ ./src/services/goplay-be/goplay-be.ts 1:0-36

ERROR in ./src/services/hbo-max/HboMaxApi.ts
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: C:\Users\slabuszewskierwin\uts\src\services\hbo-max\HboMaxApi.ts: Support for the experimental syntax 'flow' isn't currently enabled (10:8):

   8 | import { Item } from '@models/Item';
   9 |
> 10 | export interface HboMaxAuthObj {
     |        ^
  11 |  accessToken: string;
  12 |  refreshToken: string;
  13 |

Add @babel/preset-flow (https://git.io/JfeDn) to the 'presets' section of your Babel config to enable transformation.
If you want to leave it as-is, add @babel/plugin-syntax-flow (https://git.io/vb4yb) to the 'plugins' section to enable parsing.
    at Parser._raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:147:45)
    at Parser.raiseWithData (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:142:17)
    at Parser.expectOnePlugin (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\util.js:208:18)
    at Parser.isExportDefaultSpecifier (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1962:16)
    at Parser.maybeParseExportDefaultSpecifier (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1839:14)
    at Parser.parseExport (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1784:29)
    at Parser.parseStatementContent (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:340:25)
    at Parser.parseStatement (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:242:17)
    at Parser.parseBlockOrModuleBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:980:25)
    at Parser.parseBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:956:10)
 @ ./src/services/hbo-max/HboMaxParser.ts 19:0-48 30:29-38
 @ ./src/services/hbo-max/hbo-max.ts 1:0-32

ERROR in ./src/services/netflix/NetflixApi.ts
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: C:\Users\slabuszewskierwin\uts\src\services\netflix\NetflixApi.ts: Support for the experimental syntax 'flow' isn't currently enabled (9:8):

   7 | import { Item } from '@models/Item';
   8 |
>  9 | export interface NetflixGlobalObject {
     |        ^
  10 |  appContext: {
  11 |          state: {
  12 |                  playerApp: {

Add @babel/preset-flow (https://git.io/JfeDn) to the 'presets' section of your Babel config to enable transformation.
If you want to leave it as-is, add @babel/plugin-syntax-flow (https://git.io/vb4yb) to the 'plugins' section to enable parsing.
    at Parser._raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:147:45)
    at Parser.raiseWithData (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:142:17)
    at Parser.expectOnePlugin (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\util.js:208:18)
    at Parser.isExportDefaultSpecifier (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1962:16)
    at Parser.maybeParseExportDefaultSpecifier (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1839:14)
    at Parser.parseExport (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1784:29)
    at Parser.parseStatementContent (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:340:25)
    at Parser.parseStatement (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:242:17)
    at Parser.parseBlockOrModuleBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:980:25)
    at Parser.parseBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:956:10)
 @ ./src/services/netflix/NetflixParser.ts 19:0-50 30:29-39
 @ ./src/services/netflix/netflix.ts 1:0-33

ERROR in ./src/services/nrk/NrkParser.ts
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: C:\Users\slabuszewskierwin\uts\src\services\nrk\NrkParser.ts: Missing semicolon. (10:12)

   8 |
   9 |  itemIdFnToInject = () => {
> 10 |          let itemId: string | null = null;
     |                    ^
  11 |          const { player } = window;
  12 |          if (player) {
  13 |                  const playbackSession = player.getPlaybackSession();
    at Parser._raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:147:45)
    at Parser.raiseWithData (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:142:17)
    at Parser.raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:91:17)
    at Parser.semicolon (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\util.js:143:10)
    at Parser.parseVarStatement (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:805:10)
    at Parser.parseStatementContent (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:302:21)
    at Parser.parseStatement (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:242:17)
    at Parser.parseBlockOrModuleBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:980:25)
    at Parser.parseBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:956:10)
    at Parser.parseBlock (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:926:10)
 @ ./src/services/nrk/nrk.ts 1:0-25

ERROR in ./src/services/streamz-be/StreamzBeParser.ts
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: C:\Users\slabuszewskierwin\uts\src\services\streamz-be\StreamzBeParser.ts: Missing semicolon. (16:15)

  14 |          const titleElement = document.querySelector('.player__title');
  15 |          const id = this.parseItemIdFromUrl();
> 16 |          let showTitle: string | null = null;
     |                       ^
  17 |          let seasonId: string | null = null;
  18 |          let episodeId: string | null = null;
  19 |          let subTitle: string | undefined = undefined;
    at Parser._raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:147:45)
    at Parser.raiseWithData (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:142:17)
    at Parser.raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:91:17)
    at Parser.semicolon (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\util.js:143:10)
    at Parser.parseVarStatement (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:805:10)
    at Parser.parseStatementContent (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:302:21)
    at Parser.parseStatement (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:242:17)
    at Parser.parseBlockOrModuleBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:980:25)
    at Parser.parseBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:956:10)
    at Parser.parseBlock (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:926:10)
 @ ./src/services/streamz-be/streamz-be.ts 1:0-38

ERROR in ./src/services/viaplay/ViaplayApi.ts
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: C:\Users\slabuszewskierwin\uts\src\services\viaplay\ViaplayApi.ts: Support for the experimental syntax 'flow' isn't currently enabled (8:8):

   6 | import { Item } from '@models/Item';
   7 |
>  8 | export interface ViaplayAuthResponse {
     |        ^
   9 |  success: boolean;
  10 |  userData?: {
  11 |          firstName: string;

Add @babel/preset-flow (https://git.io/JfeDn) to the 'presets' section of your Babel config to enable transformation.
If you want to leave it as-is, add @babel/plugin-syntax-flow (https://git.io/vb4yb) to the 'plugins' section to enable parsing.
    at Parser._raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:147:45)
    at Parser.raiseWithData (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:142:17)
    at Parser.expectOnePlugin (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\util.js:208:18)
    at Parser.isExportDefaultSpecifier (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1962:16)
    at Parser.maybeParseExportDefaultSpecifier (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1839:14)
    at Parser.parseExport (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1784:29)
    at Parser.parseStatementContent (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:340:25)
    at Parser.parseStatement (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:242:17)
    at Parser.parseBlockOrModuleBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:980:25)
    at Parser.parseBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:956:10)
 @ ./src/services/viaplay/ViaplayParser.ts 19:0-50 30:29-39
 @ ./src/services/viaplay/viaplay.ts 1:0-33

ERROR in ./src/services/vrtnu-be/VrtnuBeParser.ts
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: C:\Users\slabuszewskierwin\uts\src\services\vrtnu-be\VrtnuBeParser.ts: Missing semicolon. (14:15)

  12 |  parseItemFromDom() {
  13 |          const serviceId = this.api.id;
> 14 |          let showTitle: string | null = null;
     |                       ^
  15 |          let seasonOrYear: string | null = null;
  16 |          let subTitle: string | undefined = undefined;
  17 |          let seasonAndEpisode: string | undefined = undefined;
    at Parser._raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:147:45)
    at Parser.raiseWithData (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:142:17)
    at Parser.raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:91:17)
    at Parser.semicolon (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\util.js:143:10)
    at Parser.parseVarStatement (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:805:10)
    at Parser.parseStatementContent (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:302:21)
    at Parser.parseStatement (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:242:17)
    at Parser.parseBlockOrModuleBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:980:25)
    at Parser.parseBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:956:10)
    at Parser.parseBlock (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:926:10)
 @ ./src/services/vrtnu-be/vrtnu-be.ts 1:0-34

ERROR in ./src/services/vtmgo-be/VtmgoBeParser.ts
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: C:\Users\slabuszewskierwin\uts\src\services\vtmgo-be\VtmgoBeParser.ts: Missing semicolon. (16:15)

  14 |          const titleElement = document.querySelector('.player__title');
  15 |          const id = this.parseItemIdFromUrl();
> 16 |          let showTitle: string | null = null;
     |                       ^
  17 |          let seasonId: string | null = null;
  18 |          let episodeId: string | null = null;
  19 |          let subTitle: string | undefined = undefined;
    at Parser._raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:147:45)
    at Parser.raiseWithData (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:142:17)
    at Parser.raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:91:17)
    at Parser.semicolon (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\util.js:143:10)
    at Parser.parseVarStatement (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:805:10)
    at Parser.parseStatementContent (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:302:21)
    at Parser.parseStatement (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:242:17)
    at Parser.parseBlockOrModuleBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:980:25)
    at Parser.parseBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:956:10)
    at Parser.parseBlock (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:926:10)
 @ ./src/services/vtmgo-be/vtmgo-be.ts 1:0-34

ERROR in ./src/common/Shared.ts
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: C:\Users\slabuszewskierwin\uts\src\common\Shared.ts: Support for the experimental syntax 'flow' isn't currently enabled (3:8):

  1 | import browser from 'webextension-polyfill';
  2 |
> 3 | export interface SharedValues {
    |        ^
  4 |   DATABASE_URL: string;
  5 |
  6 |   environment: string;

Add @babel/preset-flow (https://git.io/JfeDn) to the 'presets' section of your Babel config to enable transformation.
If you want to leave it as-is, add @babel/plugin-syntax-flow (https://git.io/vb4yb) to the 'plugins' section to enable parsing.
    at Parser._raise (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:147:45)
    at Parser.raiseWithData (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\error.js:142:17)
    at Parser.expectOnePlugin (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\util.js:208:18)
    at Parser.isExportDefaultSpecifier (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1962:16)
    at Parser.maybeParseExportDefaultSpecifier (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1839:14)
    at Parser.parseExport (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:1784:29)
    at Parser.parseStatementContent (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:340:25)
    at Parser.parseStatement (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:242:17)
    at Parser.parseBlockOrModuleBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:980:25)
    at Parser.parseBlockBody (C:\Users\slabuszewskierwin\uts\node_modules\@babel\parser\src\parser\statement.js:956:10)
 @ ./src/modules/background/background.ts 15:0-40 30:12-27

webpack 5.55.0 compiled with 28 errors in 4686 ms
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! universal-trakt-scrobbler@1.0.0 build: `webpack --env production`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the universal-trakt-scrobbler@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\slabuszewskierwin\AppData\Roaming\npm-cache\_logs\2021-09-29T09_16_23_798Z-debug.log

2021-09-29T09_16_23_798Z-debug.log

MrMamen commented 3 years ago

Of some strange reason it looks like your computer thinks the syntax is flow (rather than typescript). I do however see that you run build, while "npm start" should be sufficient. And I assume you have run "npm install" on the most recent commit?

husk007 commented 3 years ago

Hi, I followed the instructions. At first I installed Node 14.18.0. Then I used the command nvm use 14.18.0. Then, based on the template, I prepared the config.json file. Then just npm install and npm build. And the result is as you can see .... npm start has the same result.

Edit 29.10.2021 I started one more time from the begininng and now is the difrend problem. PS C:\Users\slabuszewskierwin\uts> npm run build

> universal-trakt-scrobbler@1.0.0 build C:\Users\slabuszewskierwin\uts
> webpack --env production

[webpack-cli] [Error: ENOENT: no such file or directory, open 'C:\Users\slabuszewskierwin\uts\dist\chrome.zip'] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
  path: 'C:\\Users\\slabuszewskierwin\\uts\\dist\\chrome.zip'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! universal-trakt-scrobbler@1.0.0 build: `webpack --env production`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the universal-trakt-scrobbler@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\slabuszewskierwin\AppData\Roaming\npm-cache\_logs\2021-10-29T18_45_23_358Z-debug.log
`
[2021-10-29T18_45_23_358Z-debug.log](https://github.com/trakt-tools/universal-trakt-scrobbler/files/7444304/2021-10-29T18_45_23_358Z-debug.log)

Edit 29.10.2021 I found chrome.zip in github and paste it to dist folder and everything i working.

bnowakow commented 2 years ago

@husk007 you can try npm run build-dev instead running npm run build and you should be fine.

ITSYV commented 2 years ago

Player.pl added, if I have the time tomorrow, i'll check out polsatboxgo.pl. Don't have an account for HBO

119

ITSYV commented 2 years ago

119 HBO Go added ! Only scrobbling for the moment. Didn't find any history data

I can't seem to get Polsat Box working with my VPN (i don't get any data when using it) and can't open any series or movies without the vpn

debose commented 1 year ago

This project looks amazing so far! Any updates on when/if there will be support for Apple TV+?