web-infra-dev / rsbuild

The Rspack-based build tool. It's fast, out-of-the-box and extensible.
https://rsbuild.dev/
MIT License
1.54k stars 120 forks source link

[Bug]: The specified value was not found under node_modules (relative path import and export) #3112

Closed bestWangQin closed 1 month ago

bestWangQin commented 2 months ago

Version

System:
    OS: macOS 14.4
    CPU: (11) x64 Apple M3 Pro
    Memory: 105.14 MB / 18.00 GB
    Shell: 5.9 - /bin/zsh
  Browsers:
    Chrome: 127.0.6533.89
    Safari: 17.4
  npmPackages:
    @rsbuild/core: ^0.4.3 => 0.4.15 
    @rsbuild/plugin-react: ^0.4.3 => 0.4.15 
    @rsbuild/plugin-svgr: ^0.4.3 => 0.4.15

Details

项目由CRA迁移到rsbuild,原项目使用CRA不报任何错误的前提下: 本地启动后,报了node modules下包的错误:

bug

但是上面那个值就是一个枚举,在index文件中已经统一导出(使用的都是相对路径),看起来是rsbuild没有找到对应的路径,但CRA能找到。 有无配置项或者插件能解呢?

Reproduce link

none

Reproduce Steps

none

github-actions[bot] commented 2 months ago

Hello @bestWangQin. Please provide a reproduction repository or online demo. For background, see Why reproductions are required. Thanks ❤️

github-actions[bot] commented 1 month ago

As the issue was labelled with need reproduction, but no response in 5 days. This issue will be closed. Feel free to comment and reopen it if you have any further questions. For background, see Why reproductions are required.

由于该 issue 被标记为 "需要重现",但在 5 天内没有回应,因此该 issue 将被关闭。如果你有任何进一步的问题,请随时发表评论并重新打开该 issue。背景请参考 为什么需要最小重现