Skip to content

Commit edcc53b

Browse files
nanddeepnVesaJuvonen
authored andcommitted
Added section How to unlink SPFx library (SharePoint#4630)
Added section on how to unlink a library from SPFx solution and a symlink from local "node_modules" folder.
1 parent d5a0ff5 commit edcc53b

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

docs/spfx/library-component-tutorial.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,24 @@ localization_priority: Priority
148148
149149
1. Making any changes to the library, and publishing the library to the app catalog again will automatically update the web part without the need to rebuild/republish the web part.
150150
151+
152+
## How to unlink SPFx library
153+
154+
To unlink a SPFx library that was symlinked during development in your SPFx project, navigate to SPFx project root folder and run the command.
155+
```
156+
npm unlink corporate-library
157+
```
158+
159+
To check the folder ___location of SPFx library.
160+
```
161+
npm ls -g 'corporate-library'
162+
```
163+
164+
To remove local npm link to the library, navigate to the SPFx library root folder and run the command.
165+
```
166+
npm unlink
167+
```
168+
151169
## See also
152170
153-
- [Using library component type in SharePoint Framework](./library-component-overview.md)
171+
- [Using library component type in SharePoint Framework](./library-component-overview.md)

0 commit comments

Comments
 (0)