Open Bug 1917152 Opened 1 year ago Updated 4 months ago

./mach ts setup is failure due to missing jsonc-parser

Categories

(Developer Infrastructure :: Lint and Formatting, defect)

defect

Tracking

(Not tracked)

People

(Reporter: m_kato, Unassigned)

References

(Blocks 1 open bug)

Details

When running ./mach ts setup, it is failed since jsonc-parser isn't installed.

makoto@breakbeat /m/gecko> ./mach ts setup
npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported

> postinstall
> npm explore typescript-dom-lib-generator -- tsc --typeRoots ../@types

src/build.ts:14:19 - error TS2307: Cannot find module 'jsonc-parser' or its corresponding type declarations.

14 import jsonc from "jsonc-parser";
                     ~~~~~~~~~~~~~~


Found 1 error in src/build.ts:14

npm ERR! code 2
npm ERR! path /mozilla/gecko/tools/ts/node_modules/typescript-dom-lib-generator
npm ERR! command failed
npm ERR! command sh -c tsc --typeRoots ../@types
npm ERR! code 2
npm ERR! path /mozilla/gecko/tools/ts
npm ERR! command failed
npm ERR! command sh -c npm explore typescript-dom-lib-generator -- tsc --typeRoots ../@types

"jsonc-parser": "^3.2.0", is devDependenceis in typescript-dom-lib-generator and typescript.

The severity field is not set for this bug.
:andi, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(bpostelnicu)
Severity: -- → S3
Flags: needinfo?(bpostelnicu)

I'm not able to reproduce this. I don't think I have anything at the top-level, I also removed the top level node_modules as well as the tools/ts/node_modules directory.

Blocks: typescript
You need to log in before you can comment on or make changes to this bug.