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

Cannot destructure property 'description' of 'types[type]' as it is undefined. #510

Open
bartutiryakioglu opened this issue Oct 12, 2022 · 2 comments

Comments

@bartutiryakioglu
Copy link

module.exports = { disableEmoji: false, format: '{type}{scope}: {emoji}{subject}', list: ['test', 'feat', 'fix', 'chore', 'doc', 'refactor', 'style', 'ci', 'perf', 'add', 'plugin'], maxMessageLength: 64, minMessageLength: 3, questions: ['type', 'scope', 'subject', 'body', 'breaking', 'issues', 'lerna'], scopes: [], types: { chore: { description: 'Build process or auxiliary tool changes', emoji: '🤖', value: 'chore' }, ci: { description: 'CI related changes', emoji: '🎡', value: 'ci' }, docs: { description: 'Documentation only changes', emoji: '✏️', value: 'docs' }, feat: { description: 'A new feature', emoji: '🎸', value: 'feat' }, fix: { description: 'A bug fix', emoji: '🐛', value: 'fix' }, perf: { description: 'A code change that improves performance', emoji: '⚡️', value: 'perf' }, refactor: { description: 'A code change that neither fixes a bug or adds a feature', emoji: '💡', value: 'refactor' }, release: { description: 'Create a release commit', emoji: '🏹', value: 'release' }, style: { description: 'Markup, white-space, formatting, missing semi-colons...', emoji: '💄', value: 'style' }, test: { description: 'Adding missing tests', emoji: '💍', value: 'test' }, add: { description: 'Adding or improving a feature', emoji: ':hammer:', value: 'add' }, plugin: { description: 'Add or change version of plugin', emoji: ':package:', vaalue: 'plugin' } }, messages: { type: 'Select the type of change that you\'re committing:', customScope: 'Select the scope this component affects:', subject: 'Write a short, imperative mood description of the change:\n', body: 'Provide a longer description of the change:\n ', breaking: 'List any breaking changes:\n', footer: 'Issues this commit closes, e.g #123:', confirmCommit: 'The packages that this commit has affected\n', }, };

here is my changelog.config.js file. Getting this error: Cannot destructure property 'description' of 'types[type]' as it is undefined. How to fix this issue?

@madrus
Copy link

madrus commented Nov 5, 2022

Same here

@madrus
Copy link

madrus commented Nov 5, 2022

Solved. You have doc in your list but docs in types. All entries must match. I have had a similar error.

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