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

fix: <title> #4208

Closed
1 of 4 tasks
Joanneyoung01 opened this issue Dec 13, 2024 · 1 comment
Closed
1 of 4 tasks

fix: <title> #4208

Joanneyoung01 opened this issue Dec 13, 2024 · 1 comment
Labels

Comments

@Joanneyoung01
Copy link

Steps to Reproduce

1. First step
When using commitlint, I have used a conventional commit
2. Second step
Unable to commit due to the current behaviour

Current Behavior

Seeing the below error message

import { findUp } from ‘find-up’;
^^^^^^
SyntaxError: Named export ‘findUp’ not found. The requested module ‘find-up’ is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from ‘find-up’;
const { findUp } = pkg;

Expected Behavior

I should be able to commit correctly

Affected packages

  • cli
  • core
  • prompt
  • config-angular

Possible Solution

I have added Find Up as a dependancy

"dependencies": {
"find-up": "^7.0.0"
}

Context

I would like to be able to remove this dependancy as it's a direct dependancy of the Commit Lint package, not required by my application

commitlint --version

@commitlint/cli": "^19.5.0"

git --version

git version 2.47.1

node --version

v20.9.0

@escapedcat
Copy link
Member

Duplicates #4209

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants