Sitecore PowerShell Extensions Installation Hangs on Spinning Wheel – Sitecore 8.2

Sitecore PowerShell Extensions is a powerful Sitecore development tool to manage Sitecore contents, create automation jobs and do a tons of cool stuff. It brings the PowerShell scripting capabilities to deliver Sitecore solutions faster. It also has a lot of out of box tools that doesn’t require PowerShell scripting skills.

It is created by the community developers and can be installed from the market place.

When you try to install the tool, you might encounter the package installation hanging on the spinning wheel.

Solutions

Simple! You need to run your MongoDB. Without connection to MongoDB, the installation hangs.

If you haven’t installed MongoDB, here is the installation instruction. For local machine, I recommend you to run MongoDB as a service.

Running MongoDB as Windows service

(1) Setting up folders

When you install MongoDB to windows, you will create a db folder as C:/data/db. In the data folder, create config and logs folders.

- C:
  - data
    - db
  - config
  - logs

(2) Adding config file

In the data folder, create a config file as mongod.cfg and add the lines below.

logpath=C:\data\logs\mongo.log
dbpath=C:\data\db

(3) Setting up Mongo bin path

Add C:\Program Files\MongoDB\Server\3.6\bin to Environment Variable. This will enable you to run mongo commands from cmd.

(4) Install MongoDB to Windows service

Make sure that your MongoDB server is stopped. Run the command below.

mongod --config "C:\data\config\mongod.cfg" --install

(5) Check the service

You will see the MongoDB Service running.

Front-End
TypeScript: type aliases to check type equality

This post is to analyse how the type equality check by using type aliases proposed by Matt Pocock in his twitter post. These type aliases allow us to elegantly express type equality checks in unit tests. All we need to do is to pass the output and expected types in …

Front-End
Fixing it.only type error in Jest

If you are getting a type error with it.only in Jest, it could be due to incorrect TypeScript typings or incompatible versions of Jest and TypeScript. To resolve this issue, you can try the following steps: Make sure you have the latest versions of Jest and its TypeScript typings installed …

Front-End
yup conditional validation example

Here’s an example of a Yup validation logic where the first input field is optional but, if filled, it must contain only alphabetic characters, and the second input field is required: import * as Yup from “yup”; const validationSchema = Yup.object().shape({ firstField: Yup.string().matches(/^[A-Za-z]*$/, { message: “First field must contain only …