We can’t find a Lightning web component named 'ldsUtils'. - Answers - Salesforce Trailblazer Community
Trailblazer Community
Ask Search:
Jill HertzmanJill Hertzman 

We can’t find a Lightning web component named 'ldsUtils'.

I am currently working on "Lightning Web Components and Salesforce Data - The third part: Handle Server Error". And I keep getting this error:
can’t find a Lightning web component named 'ldsUtils'.

The challenge is working and doing what it is supposed to.
However my component is idsUtils. I am guessing that is why it can'ät find the component? But I can't change the name, and I type it with capital (I) IdsUtils in VS, but it shows up in SF with idsUtils.

I have done this challenge at lest 5 times now (in new trailhead orgs each time), and I cant get it to pass. 
Can anyone help me out here?
Best Answer chosen by Jill Hertzman
Vanisha GuptaVanisha Gupta
Hi,

Name of the web component is ldsUtils as mentioned in challenge. Small (L) - lion .
Can you please make this correction & try?

Let me know if it helps.

 

All Answers

Vanisha GuptaVanisha Gupta
Hi,

Name of the web component is ldsUtils as mentioned in challenge. Small (L) - lion .
Can you please make this correction & try?

Let me know if it helps.

 
This was selected as the best answer
Piyush SinghalPiyush Singhal
Hi Trail Blaizer,

Refer the below link -
https://trailblazers.salesforce.com/answers?id=9063A000000eYFRQA2

Hope this will resolve your query, let me know if it does or needs more help.

Thank you
Piyush Singhal
Vanisha GuptaVanisha Gupta
Have you added  
https://github.com/trailheadapps/lwc-recipes/tree/master/force-app/main/default/lwc/ldsUtils
file in your component? 
Jill HertzmanJill Hertzman
OMG ! I can't believ it ;-) That did it. Thank you.
Jonny HarteJonny Harte

Hi. Can you confirm how you are meant to add the ldsUtils component?

Do I need to copy all the files/folders in that directory into "force-app/main/default/lwc/ldsUtils" or just ldsUtils.js into "force-app/main/default/lwc"?

Also could you confirm what c is referring to in the import?

import { reduceErrors } from 'c/ldsUtils';
Sunil ReddySunil Reddy
Hi Jonny, Yes you need to copy the entire folder "force-app/main/default/lwc/ldsUtils" to lwc folder.
C refers to component.