Guest User

Untitled

a guest
Mar 14th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. node.js:201
  2. throw e; // process.nextTick error, or 'error' event on first tick
  3. ^
  4. TypeError: Object function (){
  5. if(typeof env.NODE_ENV == 'undefined' || env.NODE_ENV == 'development'){
  6. var DB_HOST = dbconfig.development.host,
  7. DB_PORT = dbconfig.development.port,
  8. DB_DATABASE = dbconfig.development.database,
  9. DB_USER = dbconfig.development.username,
  10. DB_PASS = dbconfig.development.password;
  11.  
  12. var sqlorm = new Sequelize(DB_DATABASE, DB_USER, DB_PASS, {
  13. host: DB_HOST,
  14. port: DB_PORT
  15. });
  16. console.dir(sqlorm);
  17. console.log('dev selected');
  18. return sqlorm;
  19. } else {
  20. var DB_HOST = dbconfig.production.host,
  21. DB_PORT = dbconfig.production.port,
  22. DB_DATABASE = dbconfig.production.database,
  23. DB_USER = dbconfig.production.username,
  24. DB_PASS = dbconfig.production.password;
  25.  
  26. var sqlorm = new Sequelize(DB_DATABASE, DB_USER, DB_PASS, {
  27. host: DB_HOST,
  28. port: DB_PORT
  29. });
  30. console.dir(sqlorm);
  31. console.log('prod selected');
  32. return sqlorm;
  33. }
  34. } has no method 'import'
  35. at Object.<anonymous> (/home/rot/node_projects/fashion-helper/models/Locale.js:7:24)
  36. at Module._compile (module.js:432:26)
  37. at Object..js (module.js:450:10)
  38. at Module.load (module.js:351:31)
  39. at Function._load (module.js:310:12)
  40. at Module.require (module.js:357:17)
  41. at require (module.js:368:17)
  42. at Object.<anonymous> (/home/rot/node_projects/fashion-helper/routes/locales.js:1:76)
  43. at Module._compile (module.js:432:26)
  44. at Object..js (module.js:450:10)
Add Comment
Please, Sign In to add comment