Skip to content
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

Model was crashing because of spelling error #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NightAOtidae
Copy link

Was crashing because of spelling issue in model...

/home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/sails/node_modules/waterline-schema/lib/waterline-schema/joinTables.js:143
throw new Error(error);
^

Error: Collection user has an attribute named roles that is pointing to a collection named role which doesn't exist. You must first create the role collection.
at JoinTables.parseAttribute (/home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/sails/node_modules/waterline-schema/lib/waterline-schema/joinTables.js:143:11)
at /home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/sails/node_modules/waterline-schema/lib/waterline-schema/joinTables.js:83:22
at Array.forEach (native)
at JoinTables.buildJoins (/home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/sails/node_modules/waterline-schema/lib/waterline-schema/joinTables.js:82:24)
at new JoinTables (/home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/sails/node_modules/waterline-schema/lib/waterline-schema/joinTables.js:40:23)
at new module.exports (/home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/sails/node_modules/waterline-schema/lib/waterline-schema.js:33:17)
at [object Object].Waterline.initialize (/home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/sails/node_modules/waterline/lib/waterline.js:107:17)
at buildORM (/home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/sails/lib/hooks/orm/build-orm.js:52:15)
at Array.async.auto.instantiatedCollections (/home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/sails/lib/hooks/orm/index.js:203:11)
at listener (/home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/sails/node_modules/async/lib/async.js:490:46)
at /home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/sails/node_modules/async/lib/async.js:441:17
at _each (/home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/sails/node_modules/async/lib/async.js:46:13)
at Immediate.taskComplete (/home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/sails/node_modules/async/lib/async.js:440:13)
at processImmediate as _immediateCallback

/home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/sails/node_modules/waterline-schema/lib/waterline-schema/joinTables.js:143
    throw new Error(error);
    ^

Error: Collection user has an attribute named roles that is pointing to a collection named role which doesn't exist. You must  first create the role collection.
  at JoinTables.parseAttribute (/home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/sails/node_modules/waterline-schema/lib/waterline-schema/joinTables.js:143:11)
  at /home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/sails/node_modules/waterline-schema/lib/waterline-schema/joinTables.js:83:22
  at Array.forEach (native)
  at JoinTables.buildJoins (/home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/sails/node_modules/waterline-schema/lib/waterline-schema/joinTables.js:82:24)
  at new JoinTables (/home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/sails/node_modules/waterline-schema/lib/waterline-schema/joinTables.js:40:23)
  at new module.exports (/home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/sails/node_modules/waterline-schema/lib/waterline-schema.js:33:17)
  at [object Object].Waterline.initialize (/home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/sails/node_modules/waterline/lib/waterline.js:107:17)
  at buildORM (/home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/sails/lib/hooks/orm/build-orm.js:52:15)
  at Array.async.auto.instantiatedCollections (/home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/sails/lib/hooks/orm/index.js:203:11)
  at listener (/home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/sails/node_modules/async/lib/async.js:490:46)
  at /home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/sails/node_modules/async/lib/async.js:441:17
  at _each (/home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/sails/node_modules/async/lib/async.js:46:13)
  at Immediate.taskComplete (/home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/sails/node_modules/async/lib/async.js:440:13)
  at processImmediate [as _immediateCallback] (timers.js:374:17)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant