Closed mwildehahn closed 4 years ago
I thought this might be related to @babel/plugin-proposal-class-properties
and having loose: true
but I removed that and it didn't make a difference
I'm not sure, but I assume this must be babel + next.js build pipeline issue, since it's using standard decorator syntax. have you been able to check
I have the following tsconfig.json:
and the following .babelrc:
(I'm using next.js)
I have a user class:
The issue I'm seeing is that setting
user.id =
for example doesn't invokesetAttribute
to set the property in__attributes
. If I callsetAttribute
directly, it works 🤔 .I added some debug logging and see that the attribute decorator is getting picked up and it configures the getter/setter on the class... not sure why it isn't working.
Any ideas?