Posted 18 October 2019, 4:36 am ESTI 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'.
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
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.