-
Notifications
You must be signed in to change notification settings - Fork 1.2k
slc loopback:relation throws error #2292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@JordanMajd are you using node6? |
@JordanMajd this is my console log of latest version of I am using node5. 5 and I don't see your error,
this warning is suspected, find some related issue : sequelize/cli#291 |
Hey @jannyHou , I am using Node 6. Good call. I will try out a 5.* and see how it goes. Thanks. |
I'm seeing this same (or very similar) issue on 4.4.3. I do not get the first error: (node:31096) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version. But I do get the last error: /usr/local/lib/node_modules/strongloop/node_modules/rx/dist/rx.js:77 |
@nateha1984 could you fork https://github.com/strongloop/loopback-sandbox and upload your code? and please also include your |
I've uploaded my changes to https://github.com/nateha1984/loopback-sandbox I've been following the loopback-getting-started tutorial and run into the error on this page of the docs: https://docs.strongloop.com/display/public/LB/Define+model+relations loopback version: 2.28.0 |
@nateha1984 I git cloned your repo and followed tutorial on the doc page: but it still works fine, did I miss anything or steps? |
No, that's about it. I've tried running through another 3rd party tutorial as well and had the same issue. |
I haven't had a chance to retest with another version of Node, but do you think system could be a factor? I'm on:
|
@JordanMajd mine is windows. I am testing on mac now, need sometime to setup lol. |
I'm also on OSX, same version |
@JordanMajd @nateha1984 thank you I reproduced that error on osx. |
I am facing the same error on windows. |
@Arveti good to know that it also happens on windows. could you post your system info(win7?8?10?) and |
Let me know if there is anything I can do to hlep @jannyHou |
@jannyHou It's windows 7. Npm version - 3.3.12, strongloop - 6.0.0, generator-loopback - 1.20.6 |
Hello I have the same problem C:\Users\mrjordan\AppData\Roaming\npm\node_modules\strongloop\node_modules\rx\dist\rx.js:77 The running environment is: Windows7, I upgraded to [email protected] and these are the rest of versions: Could somebody help me with this issue?. Regards. |
I label it as a major issue, we will take a look at it as soon as possible. As a workaround, anyone run into this bug please check our doc https://docs.strongloop.com/display/public/LB/Tutorial%3A+model+relations |
Same issue here Linux RHEL7.2 ? Select the model to create the relationship from: Grupo node-v4.4.3-linux-x64/lib/node_modules/strongloop/node_modules/generator-loopback/node_modules/yeoman-generator/node_modules/yeoman-environment/node_modules/inquirer/node_modules/rx/dist/rx.js:77 |
It seems something is missing here node-v4.4.3-linux-x64/lib/node_modules/strongloop/node_modules/generator-loopback/lib/helpers.js:
conflict is always false and callback throws an error. |
@jannyHou - Same issue here... Console log --
package.json -- Windows 10, 64-bit |
have the same issue i am using: strongloop v6.0.0 (node v4.4.4) with OS windows 8.1 hope you can fix this problem soon |
Same issue here...Latest StrongLoop, both Node 4.4.4 and Node 6.1, Windows 10. |
Same issue here! OSX El Capitan |
Here's what I did (os x):
|
After several attempts to update globally yeoman-environment, yeoman-generator, I found the fix. The culprit is in yeoman-environment inside yeoman-generator. Thanks for the hint by @jannyHou .Fixed by
Thanks Janny |
Hi good morning everyone Are the fixes above are in npm registry? Are do we need to manually update package.jaon file for yeoman generator before doing npm install -g loopback-generator? |
@subchal The fix hasn't released, it will be in npm registry tomorrow. |
Published as [email protected] |
It looks like this has broken more of the generator now. See below where I've tried to create a new model "Contact" and add a property called "email". `? Enter the model name: Contact Enter an empty property name when done. |
Hi Good afternoon Maujee - Glad I didn't download the latest version :) I followed the trick another user posted here to update the package.json in the yeoman-generator |
@0candy could you take a look of the new error of model generator: I am afraid the CI doesn't catch the error.. |
I have the same error as like this, please do help to rectify it Enter an empty property name when done.
|
The same thing happens with relations
|
@maujee we are verifying the fix: I will update here after the fix published to npm registry. |
@jannyHou Thanks for the update. |
The error is fixed and published in [email protected] Please reinstall your generator-loopback to get it work. |
I am closing issue here since generator looks good now :) |
Uh oh!
There was an error while loading. Please reload this page.
When I run the loopback relation command I get an error after I enter the property name for the relation.
The error:
Here is a log of my terminal so you can see all the options I selected:
Any hints? Thanks!
And selection the model to create the relationship from:
The text was updated successfully, but these errors were encountered: