bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Cannot load component with Webpack

Open reimund opened this issue 8 years ago • 0 comments

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

reimund avatar Aug 29 '17 11:08 reimund