Skip to content

[Bug]: Error: [html-rspack-plugin]: Child compilation failed: Tsconfig not found #6979

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

Closed
manjuy124 opened this issue Mar 27, 2025 · 2 comments
Labels
💉 bug Something isn't working

Comments

@manjuy124
Copy link

Version

System:
    OS: macOS 15.4
    CPU: (10) arm64 Apple M1 Pro
    Memory: 739.22 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Browsers:
    Chrome: 134.0.6998.89
    Safari: 18.4
  npmPackages:
    @modern-js/app-tools: 2.66.0 => 2.66.0 
    @modern-js/runtime: 2.66.0 => 2.66.0 
    @modern-js/tsconfig: 2.66.0 => 2.66.0

Details

I have created starter project and trying to run. Ran into following error :

Image

Reproduce link

https://github.com/manjuy124/myapp.git

Reproduce Steps

  1. git clone https://github.com/manjuy124/myapp.git
  2. cd myapp
  3. run 'yarn dev'

Issue with html-rspack-plugin
Image

Issue with helmet(ts issue)
Image
Image

@manjuy124 manjuy124 added the 💉 bug Something isn't working label Mar 27, 2025
@manjuy124 manjuy124 changed the title [Bug]: Error: [html-rspack-plugin]: Child compilation failed: [Bug]: Error: [html-rspack-plugin]: Child compilation failed: Tsconfig not found Mar 27, 2025
@yimingjfe
Copy link
Member

  1. I didn't reproduce this problem, can you provide more detailed steps for reproduction?

Image

  1. Due to yarn's dependency installation strategy, ts will find the type @types/[email protected], and there are two solutions:
  • Use pnpm to avoid this issue
  • Add resolutions to package.json to unify the version of @types/react
  "resolutions": {
    "@types/react": "18.3.11",
    "@types/react-dom": "18.3.1"
  },

@zllkjc
Copy link
Member

zllkjc commented May 29, 2025

Since no one has responded to this issue for a long time, I'm going to close it first.

@zllkjc zllkjc closed this as completed May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💉 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants