Closed Viktar-Semiarykou closed 3 years ago
Hi! Could you please attach your .module.json file, as well as your leprechaun.config file
you can replace any sensitive names/paths with placeholder values
ProjectName.Feature.Product.module.json.txt We used plugins to skip such includes but it is not a good fix
Hi @Viktar-Semiarykou - I wanted to give a quick update.
There are actually two issues here:
SitecoreTemplatePredicate
isn't doing its job correctly.What I'm planning on doing:
SitecoreTemplatePredicate
to ensure it's only attempting to build templates. This will coincidentally make your specific instance of the error go away, despite it not actually fixing the underlying problem.I should be able to get a fix issued by next week, alongside the other 2 issues you logged and possibly a new feature now that Sitecore CLI 4.0 is out.
I'll keep you posted. Thank you again for reporting these issues.
Hi @Viktar-Semiarykou,
I've pushed up a beta version that should resolve this issue. Can you please do the following:
dotnet tool update --version 2.1.0-beta0012 leprechaun.cli
Leprechaun.config
:
serializationFormatter
type has been updated. Use the value from Leprechaun.config line 108.module.json
. The path
no longer matters, but the name
needs to match up.Note: this version of Leprechaun now has /watch
functionality too in case you're interested.
Fixed in 2.1.0
https://github.com/blipson89/Leprechaun/blob/6930b8e2c8c0f1337baa3f2d849065a0cf4786f2/src/Leprechaun.InputProviders.Sitecore/TemplateReaders/SitecoreTemplateReader.cs#L37
module.DataStore.GetTreeNodeSync(fsTreeSpec.Path) returns null
That leads to null reference exception