Skip to content
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

[Bug]: normalizing unicode chars in route from node_modules #8541

Closed
kentets4 opened this issue Nov 26, 2024 · 1 comment
Closed

[Bug]: normalizing unicode chars in route from node_modules #8541

kentets4 opened this issue Nov 26, 2024 · 1 comment
Labels
bug Something isn't working pending triage The issue/PR is currently untouched.

Comments

@kentets4
Copy link

kentets4 commented Nov 26, 2024

System Info

System Info:
System: Windows 10/11
JS Runtime: Bun and NodeJS (latest versions)
rsbuild 1.1.4 (React + TypeScript)

Other platform info:
Correctly works in MacOS
Linux not checked except WSL version

Details

  × Module not found: Can't resolve './Сookie' in
     ╭─[552:15]
 550 │   }
 551 │ });
 552 │ var _ookie_1 = require("./\u0421ookie");
     ·                ────────────────────────
 553 │ Object.defineProperty(exports, "\u0421ookie", {
 554 │   enumerable: true,
     ╰────

script route is not normalized, but something normalizes that.

Reproduce link

https://github.com/kentets4/rsbuild-atomaro-bug

Reproduce Steps

  • create rsbuild app
  • install @atomaro/icons styled-components prop-types
bun add @atomaro/icons
bun add -D styled-components prop-types
  • import some icon from this package
// I'm used that for test in other platforms
import "@atomaro/icons"

UPD:
Works in WSL after clean node_modules

@kentets4 kentets4 added bug Something isn't working pending triage The issue/PR is currently untouched. labels Nov 26, 2024
@kentets4 kentets4 changed the title [Bug]: unicode chars normalizing route in node_modules [Bug]: normalizing unicode chars in route from node_modules Nov 26, 2024
@kentets4
Copy link
Author

kentets4 commented Nov 27, 2024

Solved: It is Bun package manager thing, solved with using another package manager (npm or yarn)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending triage The issue/PR is currently untouched.
Projects
None yet
Development

No branches or pull requests

1 participant