-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot set property constructor of [object Object] which has only a getter #150
Comments
think it got fixed by upgrading ttypescript version to v1.5.15 |
Strangely enough, I have this error with ttypescript 1.5.13 when running jest tests, but only on Linux machines. 😦 These machines run Ubuntu Linux, node 16.20.2. We have been using these exact same versions for more than 7 months with no problem. I updated to 1.5.15 and the problem went away, but I'm still curious. @jimmywarting please can you help me understand why this problem happens in the first place?
|
Could have been that it have worked on a earlier NodeJS version, and upgrading the nodejs version could have broken it. |
You're right. Anyway, still wondering why a simple patch version caused this. |
lol, was it only a minor patch (bug fix) from NodeJS version can not put the blame on ttypescript really... should blame NodeJS then. i only notice this NodeJS version problem and reported this issue cuz i was using a NodeJS v18+ locally while the other developer and docker container used v14 or early v16. Makes me wonder how many packages that utilize typescript have been broken for using typescripts bundler that generated old-ish "bad" code. cuz this |
Envirment: node v18.17.1、TypeScript 4.9.3、ttypescript v1.5.13 In my M1 mac machine, alreay have this error. (update v1.5.15, this problem was resolved) |
Do you use the exact same node version and typescript version on both? |
@jimmywarting yes, I'm sure. |
We were seeing an issue running the main workflow after the upgrade to Node v20. The issue seems to match this one here: cevek/ttypescript#150
Current ttypescript version not support node v16.20.2, the latest v16 version. It will cause this issue: cevek/ttypescript#150
* chore(drive/js): bump up ttypescript version Current ttypescript version not support node v16.20.2, the latest v16 version. It will cause this issue: cevek/ttypescript#150 * fix(hipp-vue-next): correct patchProps types align patchProps types with vue runtime core, but there also have some spec tests to fix * refactor(vue-next): minify generated style code just like fromSsrAstNodes, optimize the output in hippy-vue-css-loader, and make hippy-vue-next-style-parser to compatible with old and new format. * build(example-scripts): remove webpack.NamedModulesPlugin webpack.NamedModulesPlugin was deprecated in v4 and removed in v5. these plugin are default in devlopment mode and should not be configured in production mode, because it will expose file path and increase bundle sizes. https://v4.webpack.js.org/migrate/4/#deprecatedremoved-plugins * chore(examples): update vue3 assets --------- Co-authored-by: zealotchen <92966734+zealotchen0@users.noreply.github.com>
* chore(drive/js): bump up ttypescript version Current ttypescript version not support node v16.20.2, the latest v16 version. It will cause this issue: cevek/ttypescript#150 * fix(hipp-vue-next): correct patchProps types align patchProps types with vue runtime core, but there also have some spec tests to fix * refactor(vue-next): minify generated style code just like fromSsrAstNodes, optimize the output in hippy-vue-css-loader, and make hippy-vue-next-style-parser to compatible with old and new format. * build(example-scripts): remove webpack.NamedModulesPlugin webpack.NamedModulesPlugin was deprecated in v4 and removed in v5. these plugin are default in devlopment mode and should not be configured in production mode, because it will expose file path and increase bundle sizes. https://v4.webpack.js.org/migrate/4/#deprecatedremoved-plugins * chore(examples): update vue3 assets --------- Co-authored-by: zealotchen <92966734+zealotchen0@users.noreply.github.com>
This is an error i get when i'm trying to install a package and building it.
It looks like you are compiling to really old javascript es5 syntax and using lib es2015
it's hard to debug the compiled source.
can i ask that you please compile typescript to a newer-ish version?
fyi, i'm using NodeJS v18.17.1 and ttypescript v1.5.12
The text was updated successfully, but these errors were encountered: