Thanks to visit codestin.com
Credit goes to github.com

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

Cannot load component with Webpack #6622

Open
@reimund

Description

@reimund

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions