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

Failing to compile in typescript project #419

Closed
tbhaxor opened this issue Dec 5, 2020 · 1 comment
Closed

Failing to compile in typescript project #419

tbhaxor opened this issue Dec 5, 2020 · 1 comment

Comments

@tbhaxor
Copy link

tbhaxor commented Dec 5, 2020

When i am running tsc --build tsconflg.json. I am getting the followign error

node_modules/file-type/core.d.ts:344:28 - error TS1005: ',' expected.

344  const mimeTypes: readonly core.MimeType[];
                               ~~~~

node_modules/file-type/core.d.ts:344:32 - error TS1005: ',' expected.

344  const mimeTypes: readonly core.MimeType[];
                                   ~

node_modules/file-type/core.d.ts:344:41 - error TS1005: ',' expected.

344  const mimeTypes: readonly core.MimeType[];

My tsconfig.json

{
  "compilerOptions": {
    "target": "es5",
    "module": "commonjs",
    "outDir": "./dist",
    "strict": true,
    "typeRoots": ["src/ctypings", "./node_modules/@types"],
    "esModuleInterop": true,
    "skipLibCheck": true,
    "forceConsistentCasingInFileNames": true
  },
  "exclude": ["node_modules", "./node_modules", "./node_modules/*", "./node_modules/@types/node/index.d.ts"],
  "include": ["src/**/*.ts"],
  "ts-node": { "compiler": "typescript", "files": true }
}
@sindresorhus
Copy link
Owner

You need to upgrade your TypeScript version.

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