Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Cannot load component with Webpack #6622

Open
reimund opened this issue Aug 29, 2017 · 0 comments
Open

Cannot load component with Webpack #6622

reimund opened this issue Aug 29, 2017 · 0 comments

Comments

@reimund
Copy link

reimund commented Aug 29, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant