**Hi I got the below error, when I am trying to preview the Lightning Application. I working on the Expense Tracker App . I have followed all the steps to create the Expense Tracker Application **

enter image description here

When I clicked on the Update preview button, I got below error Lightning components require My Domain. Please contact your system administrator for more information.

  • 1
    have you create domain name?In the tutorial it will show you the step how to create domain.
    – unidha
    Dec 4, 2015 at 7:31
  • 1
    Rann I can see this question still opened. have you got your ans?
    – Ratan Paul
    Feb 17, 2016 at 17:50

5 Answers 5


You didn't Deploy domain to the user.

Steps: setup-->Domain management -->my domain

You will find a button "Deploy to users".

Please click the button and then your lightning app will run.

  • This suggestion worked.
    – KaLi
    Sep 26, 2018 at 5:57

After winter 16 release. lightning requires domain name to be set.

My Domain must be unique, so you need to pick a name of your own to use for this exercise.

  1. From Setup, enter My Domain in the Quick Find box, then select My Domain.
  2. Enter the subdomain name you want to use within the sample URL. For example, a company called Universal Containers wants to use the subdomain universalcontainers. The company’s login URL would be https://universalcontainers.my.salesforce.com/. You can use up to 40 characters. You can’t use these reserved words for subdomains:

    • www
    • salesforce
    • heroku And, you can’t start the domain name with:

    • root

    • status
  3. Click Check Availability. If your name is already taken, choose a different one.
  4. Click Terms and Conditions to review your agreement, then select the checkbox.
  5. Click Register Domain.
  6. You receive an email when your domain name is ready for testing. (It can take from 30 seconds to 24 hours.)

Source : https://developer.salesforce.com/docs/atlas.en-us.identityImplGuide.meta/identityImplGuide/identity_quickstart_my_domain.htm

  1. Create a domain.
  2. Share it with Users.
  3. Click 'Preview' button again.

follow this link if you need detailed steps on how to activate domain

  • Find a unique name and click OK/Save.
  • An email will be sent to you when your domain is ready.
  • Click and Login to see if it is working

Once your domain is ready, make sure that you share the same with users

Set Up> Search for 'My Domain' > 'Share to Users' button


Go to setup menu. Search for "My Domain". Then create a domain for your dev org. That should do it.


You will have to setup a domain for Lightning Components. Setup a domain for your org to view Lightning Components.

After setting up your domain, your url will look like


More details about My Domain


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .