6

I have set up my Loopback project and installed other packages required to run my project. Whenever I tried to run the application with the command within the folder

    node . 

it is raising following error:

test_app/node_modules/strong-remoting/lib/shared-method.js:157
  if (/^prototype\./.test(name)) {
                     ^

RangeError: Maximum call stack size exceeded

I am literally unknown about this error. Can you please suggest any solution?

Sijan Bhandari
  • 2,941
  • 3
  • 23
  • 36
  • Can you share your code where it gives to you error – Ferhat BAŞ Oct 24 '17 at 13:17
  • @FerhatBAŞ, I haven't written a single line of code. Just created model and trying to set relation in the models using loopback. When I try to rerun the application with `node .` it is giving this error. – Sijan Bhandari Oct 25 '17 at 07:04

1 Answers1

15

I had the same issue and this worked for me:

  1. Go in your models folder which should be somewhere --> /projectfolder/common/models/

  2. Open the files of the models you just set your relation about --> yourmodel.json

  3. Delete this part in your "relations" -->

     "options": {
       "nestRemoting": true
     }
    
  4. If you have set 2 relations such as hasMany and belongesTo you should apply this to booth.

Taulant
  • 175
  • 2
  • 7