8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Code like ace.require(/* ... */) is no longer accepted by TypeScript.
ace.require(/* ... */)
Code like ace.require(/* ... */) is still accepted by TypeScript.
tsconfig.json
{ "compilerOptions": { "target": "es2016", "module": "commonjs", "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "strict": true, "skipLibCheck": true } }
package.json
{ "name": "repro", "version": "1.0.0", "description": "", "main": "index.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC", "dependencies": { "ace-builds": "1.36.5", "typescript": "^5.7.3" } }
index.ts
import * as ace from 'ace-builds'; ace.require('cow');
pnpm tsc index.ts
index.ts:3:5 - error TS2339: Property 'require' does not exist on type 'typeof import("ace-builds")'. 3 ace.require('cow'); ~~~~~~~
No response
Going only by the changelog entry, the changes from @mkslanc in #5427 seem likely to be relevant.
Ace 1.37.5 / TypeScript 5.7
The text was updated successfully, but these errors were encountered:
Should be fixed by #5744
Sorry, something went wrong.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug / Current Behavior
Code like
ace.require(/* ... */)
is no longer accepted by TypeScript.Expected Behavior
Code like
ace.require(/* ... */)
is still accepted by TypeScript.Reproduction Steps
Create a basic TypeScript project
tsconfig.json
package.json
index.ts
Run the project
Upgrade to 1.37.5, run project again
Possible Solution
No response
Additional Information/Context
Going only by the changelog entry, the changes from @mkslanc in #5427 seem likely to be relevant.
Ace Version / Browser / OS / Keyboard layout
Ace 1.37.5 / TypeScript 5.7
The text was updated successfully, but these errors were encountered: