warn about class properties support in decorators readme and error messaging (#6196)
This commit is contained in:
@@ -30,7 +30,9 @@ const buildInitializerWarningHelper = template(`
|
||||
function NAME(descriptor, context){
|
||||
throw new Error(
|
||||
'Decorating class property failed. Please ensure that ' +
|
||||
'transform-class-properties is enabled.'
|
||||
'transform-class-properties is enabled and set to use loose mode. ' +
|
||||
'To use transform-class-properties in spec mode with decorators, wait for ' +
|
||||
'the next major version of decorators in stage 2.'
|
||||
);
|
||||
}
|
||||
`);
|
||||
|
||||
Reference in New Issue
Block a user