Skip to content

There is a conflict #2

@akaPipo

Description

@akaPipo
  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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions