Open s2krish opened 7 years ago
I have some issue with deploying in heroku. I got following error (Full error log is below at the end):
module.js:340 throw err; ^ Error: Cannot find module 'promise' at Function.Module._resolveFilename (modul
For the time being, I have used less.js.
Full error message:
Running python manage.py compress --force on ⬢ timepro2... up, run.9827 Found 'compress' tags in: /app/timepiece/templates/timepiece/project/create_edit.html /app/templates/registration/password_reset_form.html /app/templates/registration/password_change_form.html /app/timepiece/templates/timepiece/entry/clock_out.html /app/timepiece/templates/timepiece/schedule/view.html /app/timepiece/templates/timepiece/quick_search.html /app/templates/registration/password_change_done.html /app/timepiece/templates/timepiece/business/view.html /app/timepiece/templates/timepiece/entry/clock_in.html /app/timepiece/templates/timepiece/base.html /app/timepiece/templates/timepiece/user/settings.html /app/timepiece/templates/timepiece/reports/payroll_summary.html /app/timepiece/templates/timepiece/relationship/delete.html /app/timepiece/templates/timepiece/schedule/edit.html /app/timepiece/templates/timepiece/entry/create_edit.html /app/timepiece/templates/timepiece/project/base.html /app/timepiece/templates/timepiece/invoice/list.html /app/timepiece/templates/timepiece/business/list.html /app/timepiece/templates/timepiece/invoice/view_entries.html /app/timepiece/templates/timepiece/project/view.html /app/timepiece/templates/timepiece/invoice/create.html /app/timepiece/templates/timepiece/contract/base.html /app/timepiece/templates/timepiece/business/create_edit.html /app/timepiece/templates/timepiece/contract/view.html /app/timepiece/templates/timepiece/invoice/delete.html /app/timepiece/templates/timepiece/reports/estimation_accuracy.html /app/timepiece/templates/timepiece/reports/hourly.html /app/timepiece/templates/timepiece/project/list.html /app/timepiece/templates/timepiece/reports/base.html /app/timepiece/templates/timepiece/schedule/base.html /app/timepiece/templates/timepiece/user/base.html /app/timepiece/templates/timepiece/user/create_edit.html /app/timepiece/templates/timepiece/user/view.html /app/timepiece/templates/timepiece/user/timesheet/reject.html /app/templates/registration/password_reset_done.html /app/timepiece/templates/timepiece/entry/delete.html /app/timepiece/templates/timepiece/project/timesheet.html /app/templates/registration/login.html /app/timepiece/templates/timepiece/entry/reject.html /app/timepiece/templates/timepiece/business/base.html /app/timepiece/templates/timepiece/user/timesheet/view.html /app/templates/500.html /app/timepiece/templates/timepiece/invoice/delete_entry.html /app/templates/registration/password_reset_confirm.html /app/timepiece/templates/timepiece/invoice/outstanding.html /app/timepiece/templates/timepiece/reports/productivity.html /app/timepiece/templates/timepiece/invoice/view.html /app/timepiece/templates/timepiece/dashboard.html /app/timepiece/templates/timepiece/delete_object.html /app/timepiece/templates/timepiece/contract/list.html /app/timepiece/templates/timepiece/user/list.html /app/templates/404.html /app/timepiece/templates/timepiece/invoice/base.html /app/timepiece/templates/timepiece/reports/billable_hours.html /app/templates/registration/password_reset_complete.html /app/timepiece/templates/timepiece/relationship/edit.html /app/timepiece/templates/timepiece/invoice/edit.html /app/timepiece/templates/timepiece/user/timesheet/change.html Compressing... CommandError: An error occurred during rendering /app/timepiece/templates/timepiece/project/create_edit.html: module.js:340 throw err; ^ Error: Cannot find module 'promise' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:362:17) at require (module.js:378:17) at Object.module.exports.render (/app/.heroku/python/lib/node_modules/less/lib/less/render.js:12:71) at parseLessFile (/app/.heroku/python/lib/node_modules/less/bin/lessc:459:14) at fs.readFile (fs.js:176:14) at Object.oncomplete (fs.js:297:15)
less installation log:
remote: -----> Running install_lessc remote: npm http GET https://registry.npmjs.org/less remote: npm http 200 https://registry.npmjs.org/less remote: npm http GET https://registry.npmjs.org/less/-/less-2.7.1.tgz remote: npm http 200 https://registry.npmjs.org/less/-/less-2.7.1.tgz remote: npm WARN engine less@2.7.1: wanted: {"node":">=0.12"} (current: {"node":"v0.8.12","npm":"1.1.63"}) remote: npm http GET https://registry.npmjs.org/errno remote: npm http GET https://registry.npmjs.org/graceful-fs remote: npm http GET https://registry.npmjs.org/image-size remote: npm http GET https://registry.npmjs.org/mime remote: npm http GET https://registry.npmjs.org/mkdirp remote: npm http GET https://registry.npmjs.org/promise remote: npm http GET https://registry.npmjs.org/source-map remote: npm http 200 https://registry.npmjs.org/errno remote: npm http 200 https://registry.npmjs.org/image-size remote: npm http 200 https://registry.npmjs.org/mime remote: npm http 200 https://registry.npmjs.org/graceful-fs remote: npm http 200 https://registry.npmjs.org/mkdirp remote: npm http 200 https://registry.npmjs.org/promise remote: npm WARN optional dep failed, continuing errno@^0.1.1 remote: npm WARN optional dep failed, continuing mime@^1.2.11 remote: npm WARN optional dep failed, continuing graceful-fs@^4.1.2 remote: npm WARN optional dep failed, continuing mkdirp@^0.5.0 remote: npm WARN optional dep failed, continuing promise@^7.1.1 remote: npm http GET https://registry.npmjs.org/image-size/-/image-size-0.5.0.tgz remote: npm http 200 https://registry.npmjs.org/source-map remote: npm WARN optional dep failed, continuing source-map@^0.5.3 remote: npm http 200 https://registry.npmjs.org/image-size/-/image-size-0.5.0.tgz remote: npm WARN engine image-size@0.5.0: wanted: {"node":">=0.10.0"} (current: {"node":"v0.8.12","npm":"1.1.63"}) remote: /app/.heroku/python/bin/lessc -> /app/.heroku/python/lib/node_modules/less/bin/lessc remote: less@2.7.1 /app/.heroku/python/lib/node_modules/less
I have some issue with deploying in heroku. I got following error (Full error log is below at the end):
For the time being, I have used less.js.
Full error message:
less installation log: