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

Could not resolve "@ctrl/tinycolor" (Angular 19.0.6 + Ng Zorro 19.0.1) #8963

Closed
monsieur-ricky opened this issue Jan 9, 2025 · 4 comments
Closed
Labels
👌 Already Fixed There is already a PR trying to solve this

Comments

@monsieur-ricky
Copy link

Reproduction link

https://stackblitz.com/edit/stackblitz-starters-zc1rmhbh?file=package.json

Steps to reproduce

  1. Install or update Angular to the latest version (19.0.6)
  2. Install or update Ng Zorro to latest version (19.0.1)
  3. Run 'ng build' or 'ng serve'

What is expected?

The build to succeed without any errors.

What is actually happening?

After updating to the latest version of Angular (19.0.6) and NG Zorro (19.0.1), the following error is thrown when building or running the project:

Could not resolve "@ctrl/tinycolor"
    node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-core-config.mjs:5:26:
      5 │ import { TinyColor } from '@ctrl/tinycolor';
        ╵                           ~~~~~~~~~~~~~~~~~
  You can mark the path "@ctrl/tinycolor" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle.
Environment Info
ng-zorro-antd 19.0.1
Browser Chrome 131.0.6778.205
@AFesperman
Copy link

AFesperman commented Jan 9, 2025

Having the same issue here. I was able to npm install @ctrl/tinycolor to the project to get it to build but would be nice to have all the dependencies already pulled. Ran into this issue with several projects.

@monsieur-ricky
Copy link
Author

Yes, the issue can be temporarily fixed with npm i -D @ctrl/tinycolor.

@alee-circunomics
Copy link

According to npm list, @ctrl/tinycolor is required by @ant-design/colors, but only as a devDependency, so it's not installed properly.

Since this PR it seems. https://github.com/ant-design/ant-design-colors/pull/94/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519

@Laffery
Copy link
Collaborator

Laffery commented Jan 9, 2025

close via #8958, which will be shipped in the next patch version

@Laffery Laffery closed this as completed Jan 9, 2025
@Laffery Laffery added the 👌 Already Fixed There is already a PR trying to solve this label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👌 Already Fixed There is already a PR trying to solve this
Projects
None yet
Development

No branches or pull requests

4 participants