Good morning everyone i’m seeking a bit help.
Trying to upgrade our project from 3.5.4 to 3.6.3, it installs fine with yarn. But it seems to throw an error I’m a bit new to this so trying to debug it is a bit harder.
System Information
- Strapi Version: 3.5.4 => 3.6.3
- Operating System: MacOS
- Database: Postgres
- Node Version: 14.17.0
- NPM Version: 6.14.13
- Yarn Version: 1.22.10
Here is the error
(node:37364) UnhandledPromiseRejectionWarning: ValidationError: [0] must be a `object` type, but the final value was: `[
{
"section": "\"plugins\"",
"displayName": "\"Create\"",
"uid": "\"roles.create\"",
"subCategory": "\"roles\"",
"pluginName": "\"users-permissions\""
},
{
"section": "\"plugins\"",
"displayName": "\"Read\"",
"uid": "\"roles.read\"",
"subCategory": "\"roles\"",
"pluginName": "\"users-permissions\""
},
{
"section": "\"plugins\"",
"displayName": "\"Update\"",
"uid": "\"roles.update\"",
"subCategory": "\"roles\"",
"pluginName": "\"users-permissions\""
},
{
"section": "\"plugins\"",
"displayName": "\"Delete\"",
"uid": "\"roles.delete\"",
"subCategory": "\"roles\"",
"pluginName": "\"users-permissions\""
},
{
"section": "\"plugins\"",
"displayName": "\"Read\"",
"uid": "\"providers.read\"",
"subCategory": "\"providers\"",
"pluginName": "\"users-permissions\""
},
{
"section": "\"plugins\"",
"displayName": "\"Edit\"",
"uid": "\"providers.update\"",
"subCategory": "\"providers\"",
"pluginName": "\"users-permissions\""
},
{
"section": "\"plugins\"",
"displayName": "\"Read\"",
"uid": "\"email-templates.read\"",
"subCategory": "\"emailTemplates\"",
"pluginName": "\"users-permissions\""
},
{
"section": "\"plugins\"",
"displayName": "\"Edit\"",
"uid": "\"email-templates.update\"",
"subCategory": "\"emailTemplates\"",
"pluginName": "\"users-permissions\""
},
{
"section": "\"plugins\"",
"displayName": "\"Read\"",
"uid": "\"advanced-settings.read\"",
"subCategory": "\"advancedSettings\"",
"pluginName": "\"users-permissions\""
},
{
"section": "\"plugins\"",
"displayName": "\"Edit\"",
"uid": "\"advanced-settings.update\"",
"subCategory": "\"advancedSettings\"",
"pluginName": "\"users-permissions\""
}
]`.
at validateRegisterProviderAction (/Users/eventyret/Development/SeasonalJobs/sj-strapi/node_modules/strapi-admin/validation/action-provider.js:77:13)
at Object.register (/Users/eventyret/Development/SeasonalJobs/sj-strapi/node_modules/strapi-admin/domain/action/provider.js:36:7)
at module.exports (/Users/eventyret/Development/SeasonalJobs/sj-strapi/extensions/users-permissions/config/functions/bootstrap.js:190:17)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async Promise.all (index 5)
at async Strapi.runLifecyclesFunctions (/Users/eventyret/Development/SeasonalJobs/sj-strapi/node_modules/strapi/lib/Strapi.js:443:5)
at async Strapi.load (/Users/eventyret/Development/SeasonalJobs/sj-strapi/node_modules/strapi/lib/Strapi.js:379:5)
at async Strapi.start (/Users/eventyret/Development/SeasonalJobs/sj-strapi/node_modules/strapi/lib/Strapi.js:196:9)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:37364) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 62)
(node:37364) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Any help is much appreciated!
EDIT:
We did have some plugins but I have removed all these and I still get the same error.