I have the jquery-ui.js inside my angular's asset folder, I need to call the .accordion function from my component's template to wrap a <div id="accordion"> with the accordion functionalities but I can't get the script to be executed.
angular-cli.json:
angular-cli compile error
ERROR in ./node_modules/css-loader?{"sourceMap":false,"importLoaders":1}!./node_modules/postcss-loader?{"ident":"postcss"}!./src/assets/jquery-ui.css
Module not found: Error: Can't resolve './images/ui-icons_444444_256x240.png' in '/home/rr7/workspace/emtv2/src/assets'
resolve './images/ui-icons_444444_256x240.png' in '/home/rr7/workspace/emtv2/src/assets'
using description file: /home/rr7/workspace/emtv2/package.json (relative path: ./src/assets)
Field 'browser' doesn't contain a valid alias configuration
after using description file: /home/rr7/workspace/emtv2/package.json (relative path: ./src/assets)
using description file: /home/rr7/workspace/emtv2/package.json (relative path: ./src/assets/images/ui-icons_444444_256x240.png)
no extension
Field 'browser' doesn't contain a valid alias configuration
/home/rr7/workspace/emtv2/src/assets/images/ui-icons_444444_256x240.png doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
/home/rr7/workspace/emtv2/src/assets/images/ui-icons_444444_256x240.png.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/home/rr7/workspace/emtv2/src/assets/images/ui-icons_444444_256x240.png.js doesn't exist
as directory
/home/rr7/workspace/emtv2/src/assets/images/ui-icons_444444_256x240.png doesn't exist
[/home/rr7/workspace/emtv2/src/assets/images/ui-icons_444444_256x240.png]
[/home/rr7/workspace/emtv2/src/assets/images/ui-icons_444444_256x240.png.ts]
[/home/rr7/workspace/emtv2/src/assets/images/ui-icons_444444_256x240.png.js]
[/home/rr7/workspace/emtv2/src/assets/images/ui-icons_444444_256x240.png]
@ ./node_modules/css-loader?{"sourceMap":false,"importLoaders":1}!./node_modules/postcss-loader?{"ident":"postcss"}!./src/assets/jquery-ui.css 7:25768-25815 7:25892-25939
@ ./src/assets/jquery-ui.css
a.component.html
...
<div "id"="accordion">
...
</div>
..
<script>
$( "#accordion" ).accordion({
collapsible: true
});
</script>
Any help?
