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

[BUG] [Strapi v5 Beta]defPropValFN is not a function #20328

Closed
burakozdemir32 opened this issue May 17, 2024 · 2 comments
Closed

[BUG] [Strapi v5 Beta]defPropValFN is not a function #20328

burakozdemir32 opened this issue May 17, 2024 · 2 comments

Comments

@burakozdemir32
Copy link

burakozdemir32 commented May 17, 2024

Bug report

Required System information

  • Node.js version: 20.10.0
  • NPM version: pnpm/8.12.0 npm/? node/v18.17.0 darwin arm64
  • Strapi version: 5.0.0-beta.7
  • Database: mysql
  • Operating system: darwin-arm64
  • Is your project Javascript or Typescript: Typescript

Describe the bug

defPropValFN is not a function

It happens while creating content types, switching to advanced settings tab.

Could you please investigate?

Steps to reproduce the behavior

  1. Go to 'content type builder'
  2. Click on 'create new collection type'
  3. 'Click on advanced settings tab'.
  4. See error

Expected behavior

No error happens while creating content types.

Screenshots

Screenshot 2024-05-17 at 15 58 59

Code snippets

If applicable, add code samples to help explain your problem.

Additional context

Dependencies:

    "@strapi/logger": "^5.0.0-beta.7",
    "@strapi/plugin-cloud": "^5.0.0-beta.7",
    "@strapi/plugin-documentation": "^5.0.0-beta.7",
    "@strapi/plugin-i18n": "^5.0.0-beta.5",
    "@strapi/plugin-users-permissions": "^5.0.0-beta.7",
    "@strapi/strapi": "^5.0.0-beta.7",
    "@strapi/typescript-utils": "^5.0.0-beta.7",
    "@strapi/utils": "^5.0.0-beta.7",
    "mysql2": "^3.9.7",
    "react": "^18.0.0",
    "react-dom": "^18.0.0",
    "react-router-dom": "^6.0.0",
    "styled-components": "^6.0.0"

It could be related to some plugins like, plugin-content-manager and plugin-i18n are using styled-components@5.2.1.

@joshuaellis
Copy link
Member

You shouldn't need to install "@strapi/plugin-i18n": "^5.0.0-beta.5", can you remove this and try again please? i18n is installed by default via @strapi/strapi

@burakozdemir32
Copy link
Author

burakozdemir32 commented May 17, 2024

Hey @joshuaellis 👋 Tried it out just now, it's now working as expected. Thanks for the swift assistance 🙌

@joshuaellis joshuaellis closed this as not planned Won't fix, can't repro, duplicate, stale May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants