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

component with the same name not created #43

Open
haegemonia76 opened this issue Oct 23, 2021 · 1 comment
Open

component with the same name not created #43

haegemonia76 opened this issue Oct 23, 2021 · 1 comment

Comments

@haegemonia76
Copy link

haegemonia76 commented Oct 23, 2021

I have two components who do have the same name but not in the same category.
Unfortunately, none of them are created, thus replaced by "any" inside my dynamiczone interface.

Is it possible to tackle this with one of the functions available in the stsconfig or is that currently impossible?

// .stsconfig
module.exports = {
  input: [
    './api',
    './node_modules/strapi-plugin-users-permissions',
    './node_modules/strapi-plugin-upload',
    './node_modules/strapi-plugin-i18n',
  ],
  components: './Strapi/components',
  output: './sts/',
  enum: true,
  nested: false,
  fieldType: (fieldType, fieldName) => {
    if (fieldName === 'id') return number;
    if (fieldType === 'datetime' || fieldType === 'date') return string;
  }
}
@aperron
Copy link
Collaborator

aperron commented Nov 19, 2021

Hello, sorry but i no longer actively use Strapi. If you find a bug please follow this instruction or, better, create a pull request to fix it and I will integrate it asap .

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

2 participants