Error while loading web-designer.js in Angular

Posted by: madhur.mcs.du.2012 on 18 October 2019, 4:36 am EST

  • Posted 18 October 2019, 4:36 am EST

    I am getting error as soon as I load web-designer.js file in my Angular application. Please see error below for reference. It fails to resolve two modules namely 'Barcode' and 'dv'. Also I have loaded jQuery, which is a hard dependency for 'web-designer.js'.

    client:159 ./src/app/lib/scripts/web-designer.js
    Module not found: Error: Can't resolve 'Barcode' in 'C:\Users\madhur\Desktop\skyux-spa-sample\src\app\lib\scripts'
    errors @ client:159
    (anonymous) @ socket.js:47
    sock.onmessage @ SockJSClient.js:58
    EventTarget.dispatchEvent @ sockjs.js:170
    (anonymous) @ sockjs.js:887
    SockJS._transportMessage @ sockjs.js:885
    EventEmitter.emit @ sockjs.js:86
    WebSocketTransport.ws.onmessage @ sockjs.js:2961
    wrapFn @ zone.js:1332
    ./node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask @ zone.js:423
    ./node_modules/zone.js/dist/zone.js.Zone.runTask @ zone.js:195
    ./node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask @ zone.js:498
    invokeTask @ zone.js:1744
    globalZoneAwareCallback @ zone.js:1770
    client:159 ./src/app/lib/scripts/web-designer.js
    Module not found: Error: Can't resolve 'dv' in 'C:\Users\madhur\Desktop\skyux-spa-sample\src\app\lib\scripts'


    The code works fine when I try to use JS file it in plain HTML application.
  • Replied 20 October 2019, 5:29 pm EST

    Hi,

    Your query has been answered here: https://supportone.componentone.com/home/casedetail/401565

    Thanks
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels