When using slotValue I get TypeError: prop.split is not a function
See original GitHub issueIssue Description
// Angular
{
option: "Angular Ngrx Store",
defaultCase: '(pascalCase)',
entry: {
folderPath: './tools/templates/angular/ngrx-store/',
},
stringReplacers: [{slot:'__name__', slotValue: 'asdasdada'}, '__model__'],
output: {
path: './src/app/stores/__name__(lowerCase)',
pathAndFileNameDefaultCase: '(kebabCase)',
},
},
√ What do you want to generate? · Angular Ngrx Store (node:19132) UnhandledPromiseRejectionWarning: TypeError: prop.split is not a function
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
TypeError: split is not a function in JavaScript | bobbyhadz
The "split is not a function" error occurs when we call the split() method on a value that is not of type string....
Read more >What is causing the error `string.split is not a function`?
toString() returns the location in string form, so the concatenation will trigger that. You could also use document.URL to get a string. Share....
Read more >[Solved] TypeError: split is not a function - ItsJavaScript
The TypeError: split is not a function occurs if we call a split() method on the value that is not of a type...
Read more >How To Fix Split is Not a Function Error in JavaScript - Isotropic
The Solution. In most cases, the easiest thing you can do is simply make sure the variable you are working with is a...
Read more >Create and Edit Custom Slot Types | Alexa Skills Kit
Custom slot types are used for lists of items that are not covered by ... slot types that you have added to your...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Edhine check out my changes: https://github.com/codeBelt/generate-template-files/pull/24/files
Pull that branch down and do a
yarn && yarn build
. Thencd
in to theexamples
folder and doyarn generate
. If you look at thetemplates/angular/ngrx-store/__name__.reducer.spec.ts
you can see I addedHere I am using data from the
package.json
file.Let me know if this is what you wanted
@Edhine This feature is now in version 2.1.0