question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Some templates seems use wrong names

See original GitHub issue

General Information

  • Bug

Under util.deployTemplates:

const ejsInject = {
	componentClassName: component.componentClassName,
	componentClassNameKebabCase: paramCase(component.componentClassName),
	componentNameCamelCase: component.componentClassName, // <-- this one is not correct
	componentStrings: component.componentClassName + 'Strings',
	componentPath: component.componentPath,
	componentName: component.componentName
};

According to its name, componentNameCamelCase should be initialized with something like camelCase(component.componentName)
SPFx uses camel case component name transformation in scss files, but code above injects componentClassName instead in scss files which is not correct.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
StfBauercommented, Dec 5, 2018

Seems to be that it was related to another issue in the past and now it seems to be fixed. If so I will update the templates because of the property of camelCase class name already exists and no extra code is needed.

Thanx for letting me know.

First test on Windows: helloWorld screenshot 2018-12-05 at 20 32 38

Second test on Windows: helloworld2 screenshot 2018-12-05 at 20 33 53

Third test on Windows: Helloworld3 screenshot 2018-12-05 at 20 35 47

Third test on OSX: Helloworld4 screenshot 2018-12-05 at 20 41 54

1reaction
s-KaiNetcommented, Dec 5, 2018

@StfBauer Helloworld3 for you because of OSX?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Correct Misaligned Label Templates
Last week, we listed five main causes of misaligned label templates. This week, we'll teach you how to fix (and avoid) them for...
Read more >
Template:Bad name - Wikimedia Commons
This documentation is transcluded from Template:Bad name/doc. ... You can also simply use the name of the correct category as parameter.
Read more >
Wordpress inconsistently parsing "template name: xxx" in ...
Wordpress uses a convention so that files named like page_mytemplatename.php are considered "page templates" and are parsed in order to populate ...
Read more >
Edit templates - Microsoft Support
Edit or update your built-in or custom templates.
Read more >
Something's wrong with your template (bad mojo). The merge ...
If you are using multiple templates in your merge process, merge to each of them separately to find out specifically which template is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found