microsoft / microsoft/DefinitelyTyped-tools

`dts-gen` doesn't work with `quill-2.0.0-dev.4`: window is not defined.

Open
#1,109 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
423
Forks
237
Avg merge
18h 18m
Merged PRs (30d)
11

Description

An error occurred when I tried to generate for the package quill-2.0.0-dev.4
`Unexpected crash! Please log a bug with the commandline you specified.
D:\nvm\v18.20.1\node_modules\dts-gen\dist\run.js:156
throw e;
^

ReferenceError: window is not defined
at Object. (E:\eccom\client\node_modules\quill-2.0.0-dev.4\dist\quill.js:16:4)
at Module._compile (node:internal/modules/cjs/loader:1364:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
at Module.load (node:internal/modules/cjs/loader:1203:32)
at Module._load (node:internal/modules/cjs/loader:1019:12)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at require (node:internal/modules/helpers:177:18)
at Object. (D:\nvm\v18.20.1\node_modules\dts-gen\dist\run.js:84:67)
at Module._compile (node:internal/modules/cjs/loader:1364:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)`

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with dts-gen/dist/run.js around lines 84 and 156, then inspect the failing load at quill.js line 16. Reproduce the reported dts-gen command with quill-2.0.0-dev.4 and determine what behavior should allow generation to complete without the window error.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
cli, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.