question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deprecated `tsc` package alongside `typescript` in `package.json`

See original GitHub issue

I’m sure this is an npm 101 kind of problem. I can’t seem to compile and always run into uknown compiler option errors

npm i && npm start

up to date, audited 778 packages in 6s

93 packages are looking for funding
  run `npm fund` for details

19 low severity vulnerabilities

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

> electron-discord-webapp@1.2.1 start
> tsc && electron-forge start

error TS5023: Unknown compiler option 'allowJs'.
error TS5023: Unknown compiler option 'baseUrl'.
error TS5023: Unknown compiler option 'moduleResolution'.
error TS5023: Unknown compiler option 'pretty'.
error TS5023: Unknown compiler option 'paths'.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
SpacingBat3commented, Mar 26, 2021

Also there’s a Discussions tab, you may want to ask there for any questions about my app. I preffer an issues to be a bug tracker or feature request list, I would like to see questions not associated with any application bugs on the Discussions tab next time.

0reactions
SpacingBat3commented, Jun 8, 2022

I believe it was an actual bug these days, when WebCord had both tsc and typescript in its package.json (where typescript replaces tsc and tsc package was deprecated and should not be used/installed). Just to make things clean, I’ve updated the flags and a comment, even when this issue was old and resolved for a long time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The `tsc` package is now deprecated · Issue #16 - GitHub
The tsc NPM package description page indicates that the package is now deprecated and includes instructions to make use of ntypescript.
Read more >
Error running a 'npx tsc' command regarding Typescript
The problem is that npx doesn't know where to find the right tsc command. It first looks for a package named tsc ....
Read more >
Documentation - Module Resolution - TypeScript
Module resolution is the process the compiler uses to figure out what an import refers to. Consider an import statement like import {...
Read more >
tsc - npm
A deprecated release of the TypeScript compiler. Latest version: 2.0.4, last published: a year ago. Start using tsc in your project by ...
Read more >
A Complete Guide to Using TypeScript in Node.js - Better Stack
It's better to install TypeScript locally to register the installed version in your package.json file to ensures that everyone who clones your project...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found