简体   繁体   中英

Loopback giving Maximum call stack size exceeded error

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM