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

There is a conflict #2

Open
akaPipo opened this issue Sep 28, 2021 · 0 comments
Open

There is a conflict #2

akaPipo opened this issue Sep 28, 2021 · 0 comments

Comments

@akaPipo
Copy link

akaPipo commented Sep 28, 2021

  1. npm install clolorts
  2. import color from 'colorts'
  3. console.log("Some text".yellow)

Node version - v14.16.1

package.json
{ "name": "cmd", "version": "1.0.0", "description": "", "main": "main.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "run": "npm run build && node build/main.js", "start": "node ./build/main.js", "start:dev": "nodemon", "build": "rimraf ./build && tsc" }, "keywords": [], "author": "", "license": "ISC", "devDependencies": { "@types/node": "^16.10.1", "nodemon": "^2.0.13", "rimraf": "^3.0.2", "ts-node": "^10.2.1", "typescript": "^4.4.3" }, "dependencies": { "esm": "^3.2.25", "node-fetch": "~2.6.5" } }

node_modules/colorts/lib/string.d.ts:17:9 - error TS2717: Subsequent property declarations must have the same type. Property 'bold' must be of type '() => string', but here has type 'string'.

17 bold: string;
~~~~

node_modules/typescript/lib/lib.es2015.core.d.ts:469:5
469 bold(): string;
~~~~~~~~~~~~~~~
'bold' was also declared here.

Found 1 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

1 participant