fork-ts-checker-webpack-plugin icon indicating copy to clipboard operation
fork-ts-checker-webpack-plugin copied to clipboard

`TypeError: Cannot set property mark of #<Object> which has only a getter`

Open khteh opened this issue 1 year ago • 4 comments

Current behavior

Hit the following error on Quasar Vue.JS:

TypeError: Cannot set property mark of #<Object> which has only a getter
TypeError: Cannot set property mark of #<Object> which has only a getter
    at Object.connectTypeScriptPerformance (/usr/src/khteh/node_modules/fork-ts-checker-webpack-plugin/lib/typescript-reporter/profile/TypeScriptPerformance.js:12:36)
    at createTypeScriptReporter (/usr/src/khteh/node_modules/fork-ts-checker-webpack-plugin/lib/typescript-reporter/reporter/TypeScriptReporter.js:40:49)
    at Object.<anonymous> (/usr/src/khteh/node_modules/fork-ts-checker-webpack-plugin/lib/reporter/reporter-rpc/ReporterRpcService.js:21:30)
    at Generator.next (<anonymous>)
    at /usr/src/khteh/node_modules/fork-ts-checker-webpack-plugin/lib/reporter/reporter-rpc/ReporterRpcService.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/usr/src/khteh/node_modules/fork-ts-checker-webpack-plugin/lib/reporter/reporter-rpc/ReporterRpcService.js:4:12)
    at /usr/src/khteh/node_modules/fork-ts-checker-webpack-plugin/lib/reporter/reporter-rpc/ReporterRpcService.js:19:88
    at Object.<anonymous> (/usr/src/khteh/node_modules/fork-ts-checker-webpack-plugin/lib/rpc/RpcService.js:23:38)
    at Generator.next (<anonymous>)
TypeError: Cannot set property mark of #<Object> which has only a getter
TypeError: Cannot set property mark of #<Object> which has only a getter
    at Object.connectTypeScriptPerformance (/usr/src/khteh/node_modules/fork-ts-checker-webpack-plugin/lib/typescript-reporter/profile/TypeScriptPerformance.js:12:36)
    at createTypeScriptReporter (/usr/src/khteh/node_modules/fork-ts-checker-webpack-plugin/lib/typescript-reporter/reporter/TypeScriptReporter.js:40:49)
    at Object.<anonymous> (/usr/src/khteh/node_modules/fork-ts-checker-webpack-plugin/lib/reporter/reporter-rpc/ReporterRpcService.js:21:30)
    at Generator.next (<anonymous>)
    at /usr/src/khteh/node_modules/fork-ts-checker-webpack-plugin/lib/reporter/reporter-rpc/ReporterRpcService.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/usr/src/khteh/node_modules/fork-ts-checker-webpack-plugin/lib/reporter/reporter-rpc/ReporterRpcService.js:4:12)
    at /usr/src/khteh/node_modules/fork-ts-checker-webpack-plugin/lib/reporter/reporter-rpc/ReporterRpcService.js:19:88
    at Object.<anonymous> (/usr/src/khteh/node_modules/fork-ts-checker-webpack-plugin/lib/rpc/RpcService.js:23:38)
    at Generator.next (<anonymous>)

Expected behavior

No error

Steps to reproduce the issue

https://github.com/khteh/quasar

Issue reproduction repository

Environment

  • fork-ts-checker-webpack-plugin: [version from the package.json] Not installed explicitly
  • typescript: [version from the package.json] 5.3.3
  • eslint: [version from the package.json] 8.56.0
  • webpack: [version from the package.json] "@quasar/app-webpack": "^3.12.3",
  • os: [e.g. Ubuntu 19.04] 23.10

khteh avatar Feb 01 '24 05:02 khteh

Same issue here. Anyone found a fix / workaround?

toresenneseth avatar Mar 04 '24 21:03 toresenneseth

I'm facing a similar issue but I'm using "react": "^18.1.0", with storybook and webpack.

image

ThulinaWickramasinghe avatar Mar 21 '24 06:03 ThulinaWickramasinghe

Hey, I've got the same problem in 6.4.2 but it stopped happening after updating to 6.5.3

dominik-zeglen avatar Mar 30 '24 22:03 dominik-zeglen

The issue and other typescript 5 related issues were fixed in version 6.5.3.

brayovsky avatar Apr 11 '24 13:04 brayovsky

i demotion typescript from 5.x to 4.x to resolve this.

coderwei99 avatar Jul 25 '24 02:07 coderwei99

As @brayovsky said this was fixed in 6.5.3, the quasar framework uses 6.5.0

image

I have no control over their dependencies, please create an issue on their repo :)

piotr-oles avatar Aug 17 '24 09:08 piotr-oles