-
Notifications
You must be signed in to change notification settings - Fork 12
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
Unable to resolve linked dependencies using SPFx 1.19 & pnpm workspaces #145
Comments
Hello, is there an update regarding this as I'm also facing the same issue. Thanks in advance. |
No luck. I tried with version 1.19.3 also but still not working with pnpm for me. I have been using the SPFx gulp serve. |
I didn't have a chance to have a deep look at the issue yet. This weekend I have some time and will try to fix this one and some other issues added recently. Sorry for the inconvenience. |
I found where the problem is, it could be fixed, but require some time, will wok on it this week. |
That's great. Thanks for your help |
I published the 1.19.4 version, where I believe the issue is fixed. pnpm i [email protected] --filter @spfxtesting/my-webpart -DE
pnpm i [email protected] --filter @spfxtesting/my-other-library -DE
pnpm i [email protected] --filter @spfxtesting/my-library -DE then you should consequently execute Please try it and tell if it fixes the issue. PS. In your sample repository you use old format of fast-serve config, which will work, because it's backward compatible, but moving forward it's better to use a newer one. {
"$schema": "https://raw.githubusercontent.com/s-KaiNet/spfx-fast-serve/master/schema/config.1.1.schema.json",
"cli": {
"isLibraryComponent": true,
"port": 4322
}
} should be changed to: {
"$schema": "https://raw.githubusercontent.com/s-KaiNet/spfx-fast-serve/master/schema/config.v2.schema.json",
"serve": {
"isLibraryComponent": true,
"port": 4322
}
} |
Thank you for this. Everything is working fine again within the yarn monorepo |
I have monorepo set up with single spfx web part and two spfx libraries.
MyWebpart -> depends on MyLibrary -> depends on MyOtherLibrary
I am installing the packages using pnpm and the
link-workspace-packages
to link the dependecies together.When running the fast-serve task, everything builds fine but the web part fails to load in the browser.
It works fine using the regular
gulp serve
commandspfx libraries: 1.19.0
spfx-fast-serve-helpers:1.19.2
pnpm: 9.7.1
node: 18.19.1
I have reproduced the problem at this repository.
Thanks
The text was updated successfully, but these errors were encountered: