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
error :>> Error: Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.
at _initializerWarningHelper (C:\Users\Duvan Castro\Desktop\PROYECTOS\loginWhitExpress\dist\data\entities\user.entity.js:10:65)
at User.<instance_members_initializer> (C:\Users\Duvan Castro\Desktop\PROYECTOS\loginWhitExpress\dist\data\entities\user.entity.js:37:12)
at new User (C:\Users\Duvan Castro\Desktop\PROYECTOS\loginWhitExpress\dist\data\entities\user.entity.js:36:30)
at EntityMetadata.create (C:\Users\Duvan Castro\Desktop\PROYECTOS\loginWhitExpress\src\metadata\EntityMetadata.ts:568:23)
at EntityMetadataValidator.validate (C:\Users\Duvan Castro\Desktop\PROYECTOS\loginWhitExpress\src\metadata-builder\EntityMetadataValidator.ts:211:47)
at C:\Users\Duvan Castro\Desktop\PROYECTOS\loginWhitExpress\src\metadata-builder\EntityMetadataValidator.ts:43:18
at Array.forEach ()
at EntityMetadataValidator.validateMany (C:\Users\Duvan Castro\Desktop\PROYECTOS\loginWhitExpress\src\metadata-builder\EntityMetadataValidator.ts:42:25)
at DataSource.buildMetadatas (C:\Users\Duvan Castro\Desktop\PROYECTOS\loginWhitExpress\src\data-source\DataSource.ts:730:33)
at DataSource.initialize (C:\Users\Duvan Castro\Desktop\PROYECTOS\loginWhitExpress\src\data-source\DataSource.ts:263:13)
error :>> Error: Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.
at _initializerWarningHelper (C:\Users\Duvan Castro\Desktop\PROYECTOS\loginWhitExpress\dist\data\entities\user.entity.js:10:65)
at User.<instance_members_initializer> (C:\Users\Duvan Castro\Desktop\PROYECTOS\loginWhitExpress\dist\data\entities\user.entity.js:37:12)
at new User (C:\Users\Duvan Castro\Desktop\PROYECTOS\loginWhitExpress\dist\data\entities\user.entity.js:36:30)
at EntityMetadata.create (C:\Users\Duvan Castro\Desktop\PROYECTOS\loginWhitExpress\src\metadata\EntityMetadata.ts:568:23)
at EntityMetadataValidator.validate (C:\Users\Duvan Castro\Desktop\PROYECTOS\loginWhitExpress\src\metadata-builder\EntityMetadataValidator.ts:211:47)
at C:\Users\Duvan Castro\Desktop\PROYECTOS\loginWhitExpress\src\metadata-builder\EntityMetadataValidator.ts:43:18
at Array.forEach ()
at EntityMetadataValidator.validateMany (C:\Users\Duvan Castro\Desktop\PROYECTOS\loginWhitExpress\src\metadata-builder\EntityMetadataValidator.ts:42:25)
at DataSource.buildMetadatas (C:\Users\Duvan Castro\Desktop\PROYECTOS\loginWhitExpress\src\data-source\DataSource.ts:730:33)
at DataSource.initialize (C:\Users\Duvan Castro\Desktop\PROYECTOS\loginWhitExpress\src\data-source\DataSource.ts:263:13)
este es mi babelconfig
presets: [
[
'@babel/preset-env',
{
targets: {
node: 'current',
},
},
],
'@babel/preset-typescript',
],
plugins: [
[
'module-resolver',
{
alias: {
'@api': './src/api/',
'@serverconfig': './src/serverConfig/',
'@core': './app/src/core',
'@constant': './app/src/data/constant',
'@decorator': './app/src/data/decorator',
'@database-config': './app/src/data/database-config',
'@entity': './app/src/data/entity',
'@guard': './app/src/data/guard',
'@interceptor': './app/src/data/interceptor',
'@interface': './app/src/data/interface',
'@shared': './app/src/shared',
},
},
],
['@babel/plugin-proposal-decorators', { legacy: true }],
['@babel/plugin-proposal-class-properties', { loose: true }],
],
ignore: ['./node_modules'],
};
The text was updated successfully, but these errors were encountered: