loopback icon indicating copy to clipboard operation
loopback copied to clipboard

Name cannot contain special characters

Open juanrhino opened this issue 10 years ago • 3 comments

I'm testing the loopback generator using the command slc loopback:model and following the example in http://loopback.io/examples/ and in the step Property Name: when I introduce almost anything the generator throws me the error: Name cannot contain special characters [object Object]firstname. The strange thing is that I'm not introducing anything special, but when I introduce some characters like 'a' or 's' (for example 'b' does not work) the system doesn't throw any exception (it works perfectly).

juanrhino avatar Jun 07 '16 19:06 juanrhino

Can you post the output of slc -v here for me?

gunjpan avatar Jun 07 '16 21:06 gunjpan

It shows me this:

strongloop v6.0.1 (node v0.12.7) ├── [email protected] (fb756f2) ├── [email protected] (a98f310) ├── [email protected] (9b29df0) ├── [email protected] (62e539b) ├── [email protected] ├── [email protected] (f8c2339) ├── [email protected] (28c261d) ├─┬ [email protected] │ └── [email protected] (de9885e) ├── [email protected] (3c246d7) ├── [email protected] └── [email protected]

Maybe de node version is very old, I'm going to update it and tell you if something changes. It could be nice if the Getting Start guide tells you at least the minimum requirements (node and npm)

juanrhino avatar Jun 07 '16 23:06 juanrhino

@juanrhino : closing this as a duplicate of: https://github.com/strongloop/generator-loopback/issues/193 That's the correct repo to track the progress.

gunjpan avatar Jun 08 '16 14:06 gunjpan