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

typescript 5.7.2 error #174

Closed
patroza opened this issue Nov 23, 2024 · 0 comments
Closed

typescript 5.7.2 error #174

patroza opened this issue Nov 23, 2024 · 0 comments

Comments

@patroza
Copy link

patroza commented Nov 23, 2024

Error: Could not recognize TS format during slice!

The difference appears to be that the actual files moved into

lib/_tsc.js
lib/_tsserver.js

and the tsc.js and tsserver.js are now only shims:

// This file is a shim which defers loading the real module until the compile cache is enabled.
try {
  const { enableCompileCache } = require("node:module");
  if (enableCompileCache) {
    enableCompileCache();
  }
} catch {}
module.exports = require("./_tsc.js");
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