Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module not found error in Angular #20

Open
zomdar opened this issue Jun 10, 2019 · 0 comments
Open

Module not found error in Angular #20

zomdar opened this issue Jun 10, 2019 · 0 comments

Comments

@zomdar
Copy link

zomdar commented Jun 10, 2019

I'm trying to load this plugin in Angular 7.1.1

getting an error that says...

ERROR Error: Uncaught (in promise): TypeError: Could not load view for: ImageZoom.Error: Could not find module 'nativescript-image-zoom'.

Loading the following in main.ts

import { registerElement } from "nativescript-angular/element-registry";
registerElement('ImageZoom', () => require('nativescript-image-zoom').ImageZoom);

in the html:

    <StackLayout>
        <ImageZoom src="~/img/icon.jpg" maxZoom="5" minZoom="2"></ImageZoom>
    </StackLayout>

anyone help me out with this?

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

No branches or pull requests

1 participant