Skip to content

[Bug]: o ensure the accuracy of the collected TypeScript information, rspackExperiments.collectTypeScriptInfo can only be used when `builtin:swc-loa #7500

@xmsz-stu

Description

@xmsz-stu

版本信息

System:
    OS: macOS 15.5
    CPU: (8) arm64 Apple M2
    Memory: 987.88 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Browsers:
    Chrome: 138.0.7204.184
    Safari: 18.5
  npmPackages:
    @modern-js/app-tools: catalog: => 2.68.6 
    @modern-js/plugin-garfish: catalog: => 2.68.6 
    @modern-js/runtime: catalog: => 2.68.6 
    @modern-js/tsconfig: catalog: => 2.68.6

问题详情

从2.68.5升级到2.68.6后提示这个错误



File: /Users/kuban/code/cool-qi/packages/services/wxgatewaygroup.ts:1:1
  ⚠ To ensure the accuracy of the collected TypeScript information, `rspackExperiments.collectTypeScriptInfo` can only be used when `builtin:swc-loader` is employed as the last normal loader. For now `rspackExperiments.collectTypeScriptInfo` is overridden to disabled. If you want to suppress this warning, either turn off `rspackExperiments.collectTypeScriptInfo` in the configuration or place `builtin:swc-loader` as the first element in the `use` array.

 @ ../../packages/push-shared/MassPush/QuickPush/index.tsx
 @ ./src/components/PushModel/index.tsx
 @ ./src/routes/layout.tsx
 @ ./node_modules/.modern-js/index/routes.js
 @ ./node_modules/.modern-js/index/runtime-global-context.js
 @ ./node_modules/.modern-js/index/register.js
 @ ./node_modules/.modern-js/index/index.jsx


复现链接

复现步骤

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions