POS Page Not Opening

Hi,

I installed Dokos on a clean Ubuntu 18.04 server. I created POS Profile with all relevant fields. I have two users with System Manager and Sales User role. These roles should have all required permissions to run POS. However, the Point of Sale page does not open (or render) using any of these roles. It is blank. What could be the issue?

Thanks in advance.

Hi @dmbabu,

The page stays blank even after reloading it ?
Can you please check if you have any error in the Browser’s console ? (CTRL+SHIFT+I in Chrome)

Thanks

Here’s what the console shows:

VM411:1 Uncaught ReferenceError: onScan is not defined
    at <anonymous>:1:86361
    at Object.eval (desk.min.js:1)
    at Object.js (desk.min.js:1)
    at Object.eval_assets (desk.min.js:1)
    at desk.min.js:1
    at Object.callback (desk.min.js:1)
    at Object.n [as success_callback] (desk.min.js:1)
    at 200 (desk.min.js:1)
    at Object.<anonymous> (desk.min.js:1)
    at i (jquery.min.js:2)
request.js:250 Unable to handle success response Objectmessage: Array(1)0: "!function(t){\"use strict\";function e(t){return length: 1[[Prototype]]: Array(0)at: ƒ at()concat: ƒ concat()constructor: ƒ Array()copyWithin: ƒ copyWithin()entries: ƒ entries()every: ƒ every()fill: ƒ fill()filter: ƒ filter()find: ƒ find()findIndex: ƒ findIndex()flat: ƒ flat()flatMap: ƒ flatMap()forEach: ƒ forEach()includes: ƒ includes()indexOf: ƒ indexOf()join: ƒ join()keys: ƒ keys()lastIndexOf: ƒ lastIndexOf()length: 0map: ƒ map()move: ƒ (e,t)pop: ƒ pop()push: ƒ push()reduce: ƒ reduce()reduceRight: ƒ reduceRight()reverse: ƒ reverse()shift: ƒ shift()slice: ƒ slice()some: ƒ some()sort: ƒ sort()splice: ƒ splice()toLocaleString: ƒ toLocaleString()toString: ƒ toString()uniqBy: ƒ (e)unshift: ƒ unshift()values: ƒ values()Symbol(Symbol.iterator): ƒ values()Symbol(Symbol.unscopables): {copyWithin: true, entries: true, fill: true, find: true, findIndex: true, …}[[Prototype]]: Object[[Prototype]]: Object
request.js:251 TypeError: erpnext.PointOfSale.Controller is not a constructor
    at <anonymous>:11:17
    at Object.eval_assets (desk.min.js:1)
    at desk.min.js:1
    at Object.callback (desk.min.js:1)
    at Object.n [as success_callback] (desk.min.js:1)
    at 200 (desk.min.js:1)
    at Object.<anonymous> (desk.min.js:1)
    at i (jquery.min.js:2)
    at Object.fireWith [as resolveWith] (jquery.min.js:2)
    at z (jquery.min.js:4)
(anonymous) @ request.js:251
DevTools failed to load source map: Could not load content for http://dokos-erp.mshome.net/assets/js/socket.io.slim.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/Delta.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/AttributeMap.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/Op.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/Iterator.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/Delta.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/AttributeMap.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/Op.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/Iterator.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not parse content for http://dokos-erp.mshome.net/app/point-of-sale.min.js.map: Unexpected token < in JSON at position 0

Hi @dmbabu,

It seems like an installation issue on your server. Make sure your installation is on the master branch.
Please launch the following command in your bench: bench update --reset
Then reload your browser, the issue should be fixed.