• Simon Guillen
  • NEWBIE
  • 20 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 3
    Replies
Hi, I followed this trailhead (https://trailhead.salesforce.com/content/learn/modules/test-lightning-web-components/set-up-jest-testing-framework) and upon running this line:
sfdx force:lightning:lwc:test:setup

I get the following error:
 
npm command not found. Verify npm is properly installed and try again.

I already installed npm and node on my computer as evidenced when I type these:
 
D:\Workspace\Personal\etrs-migration>node --version
v12.14.0

D:\Workspace\Personal\etrs-migration>npm --version
6.13.4

I couldn't find solutions when I searched from Google, has anyone encountered this issue like I have right now?
Hello guys, do you know sites that are currently using the lightning design system or does Salesforce keep tabs or list of sites that are using the lightning design system?
Is there a way we can add or change the colors used for the Lightning Design System which is exclusive for my company? How do I do that and where do I start? I found an example in here (https://www.youtube.com/watch?v=wDBEc3dJJV8&t=) but there is no part where it's showing how it's done in Lightning Web Components with SLDS. Note, I want to use design tokens for this and if possible I just want to revise the existing classes provided by SLDS. For example: slds-button slds-button_brand but the brand should use a different color instead of the default one. I don't have to create my own classes.
Is there a way we can add or change the colors used for the Lightning Design System which is exclusive for my company? How do I do that and where do I start? I found an example in here (https://www.youtube.com/watch?v=wDBEc3dJJV8&t=) but there is no part where it's showing how it's done in Lightning Web Components with SLDS. Note, I want to use design tokens for this and if possible I just want to revise the existing classes provided by SLDS. For example: slds-button slds-button_brand but the brand should use a different color instead of the default one. I don't have to create my own classes.
Hi,

I'm currently struggling with Lightning Component Framework Specialist Challenge 10.

I'm successfully using an event to pass values into the Map's client side controller, and Leaflet seems to be doing something, but:

1. The marker is displayed on a grey area, not a map.
2. When I click a second boat, instead of updating the map, an error pops up informing me "Uncaught Action failed: c:Map$controller$onPlotMapMarker [Map container is already initialized.]"

This is my onPlotMapMaker method:
 
onPlotMapMarker: function(component, event, helper) {
    	var id = event.getParam('sObjectId');
    	var lat = event.getParam('lat');
    	var long = event.getParam('long');
    	var label = event.getParam('label');

    	var mapContainer = component.find('map').getElement(); 
	    var map = L.map(mapContainer).setView([lat, long], 13);

		L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
		    attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
		}).addTo(map);
		
		L.marker([lat, long]).addTo(map)
		    .bindPopup(label)
		    .openPopup();
    }

What's wrong with it?