-
Notifications
You must be signed in to change notification settings - Fork 5
Module Not found Issue with nativescript-swipe-layout #8
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
Comments
I have turned on error details for webpack and now get the following errors: Preparing project... WARNING in Zone.js does not support native async/await in ES2017+. ERROR in ./app/swipe/swipe.component.ts |
Looks like it didn't install... Can you confirm in node_modules that the plugin dir is not there? If so, then maybe it didn't publish correctly to npm. I don't see your version listed so if you can confirm that you're trying the latest 2x version also. Then we can confirm the publish was prob incorrect and fix that. |
Yea, it needs to be the .js - TS is not executable and should not be published to npm. @rhanb would need to republish it looks like. |
Thanks Brad, that makes sense, @rhanb please let me know when it has been republished. Thanks |
@bradmartin @bpince |
I am receiving same error "Module Not found Issue with nativescript-swipe-layout" with version 2.0.0, however when i upgrade it to 2.0.1 i receive an error
i am using Nativescript Angular for my project! Any guidance is appreciated 🤗 |
I have installed the nativescript-swipe-layout npm package and now when I try and do a:

ns build android I am getting the following error:
Module not found: Error: Can't resolve 'nativescript-swipe-layout' in C:\native-script-apps\scl-v1\src\app\swipe'....
It seems to be complaining about the import - import { ANIMATION_STATE, GESTURE_MODE, SwipeDownEventData, SwipeLayout, SwipeLeftEventData, SwipeRightEventData, SwipeUpEventData } from "nativescript-swipe-layout";
But I cannot understand why, any help would be appreciated.
Here is my component:
`import { Component, ElementRef, ViewChild } from "@angular/core";
import { CardView } from "@nstudio/nativescript-cardview";
import { registerElement } from "@nativescript/angular";
import { TNSFontIconService } from "nativescript-ngx-fonticon";
import { ANIMATION_STATE, GESTURE_MODE, SwipeDownEventData, SwipeLayout, SwipeLeftEventData, SwipeRightEventData, SwipeUpEventData } from "nativescript-swipe-layout";
registerElement("CardView", () => CardView);
registerElement('SwipeLayout', () => SwipeLayout);
@component({
selector: "swipe",
templateUrl: "swipe.component.html",
})
export class SwipeComponent {
private _swipeLayouts: Array;
private currentSwipeLayout: SwipeLayout;
public swipeLayoutAnimated: ANIMATION_STATE;
public gestureMode: GESTURE_MODE;
}`
The text was updated successfully, but these errors were encountered: