You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue here is that I have two packages named as @UI/theme and @UI/theme-utils and when I try to use any scripts with @UI/theme the following error is thrown to me:
☔️ error an identifier must only match a single package but "theme" matches the following packages:
☔️ error @UI/theme
☔️ error @UI/theme-utils
Upon looking at the source code I found the following lines of code that could possibly be causing the issue:
This code snippet lies within the runCmd function here.
I suppose that arg[0] might be the package that is calling the CLI command. So, for example, I am currently calling the CLI command for the theme package therefore arg[0] should be @UI/theme.
With that out of the way now I think includes is matching all the packages that have that same name, therefore, causing the issue here. I'll try to make a pull request to fix the issue.
Edit: args[0] doesn't equal to @UI/theme but just theme. I had overlooked some parts of the code
The text was updated successfully, but these errors were encountered:
The issue here is that I have two packages named as
@UI/theme
and@UI/theme-utils
and when I try to use any scripts with@UI/theme
the following error is thrown to me:☔️ error an identifier must only match a single package but "theme" matches the following packages: ☔️ error @UI/theme ☔️ error @UI/theme-utils
Upon looking at the source code I found the following lines of code that could possibly be causing the issue:
manypkg/packages/cli/src/run.ts
Lines 25 to 30 in 0fecbcb
This code snippet lies within the
runCmd
function here.I suppose that
arg[0]
might be the package that is calling the CLI command. So, for example, I am currently calling the CLI command for thetheme
package thereforearg[0]
should be@UI/theme
.With that out of the way now I think
includes
is matching all the packages that have that same name, therefore, causing the issue here. I'll try to make a pull request to fix the issue.Edit:
args[0]
doesn't equal to@UI/theme
but justtheme
. I had overlooked some parts of the codeThe text was updated successfully, but these errors were encountered: