Frequently asked questions¶
Why can't I use TypeScript?¶
To keep it plain and simple - only Node.js is be used for this generator.
It is used to develop backend services, shell scripts, development tools, and many more things.
Do I need to install @microsoft/generator-sharepoint?¶
No - The PnP SPFx generator has a dependency on a specific version of @microsoft/generator-sharepoint. This version will be automatically installed with the npm package of this generator.
Can I have different versions of @microsoft/generator-sharepoint installed?¶
Yes, you can, for example, have version 1.4.1 installed manually on your machine. When you run
yo @microsoft/sharepoint this version will be used. However, when you run
yo @pnp/spfx the version the community generator was built on will be used. For example, version 1.7 instead.