xzegga / angular-knob

ng-knob for Angular and TypeScript with D3v4
MIT License
14 stars 12 forks source link

I try to implement angular2-knob in my Ionic-3 App getting error. #3

Open Neotrixsx opened 6 years ago

Neotrixsx commented 6 years ago

Getting Error: Error: Module build failed: Error: ENOENT: no such file or directory, open '...\myapp\node_modules\angular2-knob\index.js'

I follow all instruction given in doc:

npm install angular2-knob --save

import { KnobModule } from "angular2-knob";

@NgModule({
  declarations: [
    AppComponent
   #],
  imports: [KnobModule]
  bootstrap: [AppComponent]
})

My package.json(dependencies)

"dependencies": {
    "@angular/common": "4.1.3",
    "@angular/compiler": "4.1.3",
    "@angular/compiler-cli": "4.1.3",
    "@angular/core": "4.1.3",
    "@angular/forms": "4.1.3",
    "@angular/http": "4.1.3",
    "@angular/platform-browser": "4.1.3",
    "@angular/platform-browser-dynamic": "4.1.3",
    "@ionic-native/android-permissions": "^4.2.1",
    "@ionic-native/app-version": "^4.2.1",
    "@ionic-native/call-number": "^4.2.1",
    "@ionic-native/camera": "^4.2.1",
    "@ionic-native/clipboard": "^4.2.1",
    "@ionic-native/core": "3.12.1",
    "@ionic-native/device": "^4.2.1",
    "@ionic-native/dialogs": "^4.2.1",
    "@ionic-native/in-app-browser": "^4.2.1",
    "@ionic-native/network": "^4.2.1",
    "@ionic-native/push": "^4.2.1",
    "@ionic-native/splash-screen": "3.12.1",
    "@ionic-native/status-bar": "3.12.1",
    "@ionic-native/themeable-browser": "^4.2.1",
    "@ionic-native/toast": "^4.2.1",
    "@ionic/storage": "^2.0.1",
    "angular2-knob": "^1.1.11",
    "call-number": "^1.0.1",
    "cordova-android": "^6.2.3",
    "cordova-clipboard": "^1.0.0",
    "cordova-plugin-android-permissions": "^1.0.0",
    "cordova-plugin-app-version": "^0.1.9",
    "cordova-plugin-camera": "^2.4.1",
    "cordova-plugin-compat": "^1.1.0",
    "cordova-plugin-console": "^1.0.5",
    "cordova-plugin-device": "^1.1.4",
    "cordova-plugin-dialogs": "^1.3.3",
    "cordova-plugin-inappbrowser": "^1.7.1",
    "cordova-plugin-network-information": "^1.3.3",
    "cordova-plugin-splashscreen": "^4.0.3",
    "cordova-plugin-statusbar": "^2.2.2",
    "cordova-plugin-themeablebrowser": "^0.2.17",
    "cordova-plugin-whitelist": "^1.3.1",
    "cordova-plugin-x-toast": "^2.6.0",
    "cordova-sqlite-storage": "^2.0.4",
    "ionic-angular": "3.6.1",
    "ionic-plugin-keyboard": "^2.2.1",
    "ionicons": "3.0.0",
    "moment": "^2.18.1",
    "mx.ferreyra.callnumber": "~0.0.2",
    "phonegap-plugin-push": "^2.0.0",
    "rxjs": "5.4.0",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.8.12"
  },

Please help me.

yashdabi commented 6 years ago

hey, i have same issue when i import knobModule from angular2-knob in ionic 3

Module build failed: Error: ENOENT: no such file or directory, open

Desktop\new app\newApp\node_modules\angular2-knob\index.js' at Error (native) please help me for implementing angular2-knob in ionic 3

idanb11 commented 6 years ago

Hello @xzegga ,

I'm having the same issue with angular2-knob inside Ionic 3 App.... (can't use the library at all here) Is there any chance you are going to fix it? Or should I fork your repo and fix it inside my new repo?

Thanks.

idanb11 commented 6 years ago

Hi @xzegga ,

Can you please add the dist folder to the repository? Currently only the src folder exists in the repo...

Cheers, idan.