You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The plugin babel-plugin-parameter-decorator generates a buggy piece of code that leads to an error "Cannot read properties of undefined (reading 'prototype')"
As a solution I suggest to switch from @babel/plugin-proposal-decorators & babel-plugin-parameter-decorator to proposed babel-plugin-typescript-decorators.
Logs
TypeError: Cannot read properties of undefined (reading 'prototype')
The text was updated successfully, but these errors were encountered:
Environment
node v18, jiti v1.16.0
Reproduction
Bug appears when using method & parameter decorator together like:
Describe the bug
The plugin
babel-plugin-parameter-decorator
generates a buggy piece of code that leads to an error "Cannot read properties of undefined (reading 'prototype')"The problem is mentioned here.
The author of
babel-plugin-parameter-decorator
doesn't seem to want to fix it.The solution proposed here.
Additional context
As a solution I suggest to switch from
@babel/plugin-proposal-decorators
&babel-plugin-parameter-decorator
to proposedbabel-plugin-typescript-decorators
.Logs
The text was updated successfully, but these errors were encountered: