-
Notifications
You must be signed in to change notification settings - Fork 44
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
Dynamic require conflict with packagers #67
Comments
@PRR24 is it your Angular app code that imports |
There are number of indirect dependencies to picocolor from @angular-devkit/build-angular |
Forgot to specify that the my issue appears with Angular 16.latest SSR build. |
Got it also with latest nextjs app router when using kysely. Couldn't reproduce easily on an opensource repo, but the issue seems to exist |
Hey, any update on this issue? |
It should be an easy fix, I can probably get to it this week. Though I would still appreciate some info about how dis you end up in situation where the angular compiler started analyzing this dependency |
I think Angular has had the dependency for a long time. There are no issues with picocolors@1.0.0, which I forced my project to at this point. If I would make a bold guess, I think the issue is arised from |
Unfortunately, I can't seem to recreate this issue in a separate repo, so it's a challenge to share it. My current project is a nextjs project, and the issue I am seeing in the console is:
The related part of
This may be completely unhelpful, but I ended up on this page, and spent some time trying to build a clean nextjs project to recreate this issue, and sadly that didn't reproduce the error. |
Look at my PR #71 for a possible fix for this if you still face the issue |
I'm wonder shouldn't Angular use |
Angular SSR runs on server. |
I am also getting this error in Next.js 13 with App router. One of my dependencies uses picocolors |
Still not convinced. It's SS Rendering, so it must produce the same output as in browser. |
It's server-side code only, via
|
@alexeyraspopov
|
Yet another try to fix alexeyraspopov#67
Version |
Added
... require("tty").isatty(1) ...
in version 1.0.1 results Angular compiler warning
./node_modules/picocolors/picocolors.js:3:163-170 - Warning: Critical dependency: require function is used in a way in which dependencies cannot be statically extracted.
Would be great if it was solved differently.
The text was updated successfully, but these errors were encountered: