Cannot load component with Webpack #6622
Description
Trying to load a component with Webpack, but the template cache files have not been built so they cannot be imported. For example: "../../template/accordion/accordion-group.html.js".
I'm installing with npm.
Do I have to clone the repo separately and build the template cache files manually? If that's the case, the documentation could be more clear on that.
The error:
Module not found: Error: Can't resolve '../../template/accordion/accordion-group.html.js' in 'D:\projects\myproject\node_modules\angular-ui-bootstrap\src\accordion'
resolve '../../template/accordion/accordion-group.html.js' in 'D:\projects\myproject\node_modules\angular-ui-bootstrap\src\accordion'
using description file: D:\projects\myproject\node_modules\angular-ui-bootstrap\package.json (relative path: ./src/accordion)
My import statement, taken from the documentation:
import accordion from 'angular-ui-bootstrap/src/accordion';
Am I missing something obvious or is the documentation missing information?
Version of Angular, UIBS, and Bootstrap
Angular: 1.6.6
UIBS: 2.4.1
Bootstrap: 3.3.7