Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: Cannot read property 'register' of undefined TypeError: Cannot read property 'register' of undefined #4

Open
Alababdiy opened this issue Nov 25, 2022 · 0 comments

Comments

@Alababdiy
Copy link

Error when i trying to run server

localhost-2:strapi-custom-slug-master abdo$ npm run develop

> my-project@0.1.0 develop /Users/abdo/Workshop/strapi-custom-slug-master
> strapi develop

[2022-11-25 09:31:46.746] debug: ⛔️ Server wasn't able to start properly.
[2022-11-25 09:31:46.748] error: Cannot read property 'register' of undefined
TypeError: Cannot read property 'register' of undefined
    at Object.registerI18nPermissionsHandlers (/Users/abdo/Workshop/strapi-custom-slug-master/node_modules/@strapi/plugin-i18n/server/services/permissions/engine.js:57:39)
    at Object.module.exports [as bootstrap] (/Users/abdo/Workshop/strapi-custom-slug-master/node_modules/@strapi/plugin-i18n/server/bootstrap.js:26:10)
    at async Object.bootstrap (/Users/abdo/Workshop/strapi-custom-slug-master/node_modules/@strapi/strapi/lib/core/domain/module/index.js:40:7)
    at async Object.bootstrap (/Users/abdo/Workshop/strapi-custom-slug-master/node_modules/@strapi/strapi/lib/core/registries/modules.js:28:9)
    at async Strapi.runLifecyclesFunctions (/Users/abdo/Workshop/strapi-custom-slug-master/node_modules/@strapi/strapi/lib/Strapi.js:528:5)
    at async Strapi.bootstrap (/Users/abdo/Workshop/strapi-custom-slug-master/node_modules/@strapi/strapi/lib/Strapi.js:466:5)
    at async Strapi.load (/Users/abdo/Workshop/strapi-custom-slug-master/node_modules/@strapi/strapi/lib/Strapi.js:475:5)
    at async Strapi.start (/Users/abdo/Workshop/strapi-custom-slug-master/node_modules/@strapi/strapi/lib/Strapi.js:212:9)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! my-project@0.1.0 develop: `strapi develop`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the my-project@0.1.0 develop script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/abdo/.npm/_logs/2022-11-25T06_31_46_777Z-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant