New York (CNN Business) Home Depot is spending a lot of money to become a bigger player online, but the results aren't working out as well as the retailer had hoped. Home Depot reported revenue that missed forecasts Tuesday morning and lowered its sales outlook too.

Home Depot HD Shares offell about 5% in early trading on the news, a move that is expected to cut into the broader market's gains since Home Depot is one of the 30 members of the Dow.

Home Depot CEO Craig Menear said in a statement that some of the expected benefits from the company's One Home Depot initiative "will take longer to realize than our initial assumptions." The retailer announced in late 2017 that it was planning to spend $5.4 billion to more seamlessly integrate its brick-and-mortar stores with its digital operations.

As part of that plan, Home Depot has installed more lockers at the front of its stores so that people could "click and collect" -- order online and then pick up their goods at the store.

Lowe's LOW Amazon AMZN Home Depot, like its top rival, has been a bit more immune from the threat fromand other online retailers since home improvement shoppers, especially professional builders, typically want to see and feel the product they are buying instead of just having it shipped to them.

Read More