strapi-plugin-transformer: TypeError: Cannot read properties of undefined (reading 'uid')
After installing your plugin, I was trying to deploy on Digital Ocean, I kept getting a build failure. Saw an error and then tried starting Strapi locally and got same error:
TypeError: Cannot read properties of undefined (reading 'uid')
at Object.module.exports [as register] (/Volumes/Strapi/api/node_modules/strapi-plugin-transformer/server/register.js:26:41)
at Object.register (/Volumes/Strapi/api/node_modules/@strapi/strapi/lib/core/domain/module/index.js:47:46)
at Object.register (/Volumes/Strapi/api/node_modules/@strapi/strapi/lib/core/registries/modules.js:33:19)
at async Strapi.runLifecyclesFunctions (/Volumes/Strapi/api/node_modules/@strapi/strapi/lib/Strapi.js:541:5)
at async Strapi.register (/Volumes/Strapi/api/node_modules/@strapi/strapi/lib/Strapi.js:401:5)
at async Strapi.load (/Volumes/Strapi/api/node_modules/@strapi/strapi/lib/Strapi.js:487:5)
at async Strapi.start (/Volumes/Strapi/api/node_modules/@strapi/strapi/lib/Strapi.js:217:9)
Using Strapi v4.6.1 - Node v16.19.1 - NPM v8.6.3
[EDIT] I added a console.log at line 26 of your register.js file and it looks like UID is not available on one of my collection types:
[Edit2] It is there, sorry. I’ll research a little more before posting more info.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 20 (2 by maintainers)
Thanks @derrickmehaffy !
Just to confirm, I removed the directory and also reverted the register.js file and it has started perfectly!
[Edit] Deployed to DO with no issues. Thanks again @derrickmehaffy!
There we go, got it 😃