subarroca / ng-gauge

Gauge generic component made with angular2 and SVG
https://subarroca.github.io/ng-gauge/
13 stars 6 forks source link

Runtimer Error: ENOENT:... no such file .... /node_modules/ng-gauge/index.js #9

Open qiluo opened 7 years ago

qiluo commented 7 years ago

Hi, I was trying to import this module to my ionic 3 project, but got error

Runtime Error
Module build failed: Error: ENOENT: no such file or directory, open 'myapp/node_modules/ng-gauge/index.js' at Error (native)
yasseralsamman commented 7 years ago

Same here. I tried doing this in my .tsconfig

 "include": [
    "src/**/*.ts",
    "node_modules/ng2-kw-gauge/index.ts"
  ],

but still getting the error.

wsnider07 commented 7 years ago

Any luck on resolving this error message? I'm getting it as well.

lassogames commented 7 years ago

I have the same issue as well. When I try to import GaugeModule into my module.ts, same report. Have been trying to figure out why the .js isn't compiling.

Runtime Error
Module build failed: Error: ENOENT: no such file or directory, open 'myapp\node_modules\ng-gauge\index.js'
Ionic Framework: 3.5.0
Ionic App Scripts: 1.3.12
Angular Core: 4.2.5
Angular Compiler CLI: 4.2.5
Node: 7.5.0
OS Platform: Windows 7
Navigator Platform: Win32
User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
pierrebiazotto commented 7 years ago

Hi,

Sorry to re open the thread but did anyone found the solution?

Thanks in advance.

cocaybica commented 7 years ago

same here.

Ionic 3 Project

aduggirala28 commented 7 years ago

Hi ! you may already be doing this, but I am going to mention it nonetheless for others like myself who might be confused.. seems like you are having something in you component file on the lines of -

import {GaugeModule} from 'myapp\node_modules\ng-gauge\index.js'

Once you npm install AND save the package, you'll be able to import it just by this import { GaugeModule } from 'ng-gauge' and import { GaugeSegment, GaugeLabel } from 'ng-gauge'

To those using Angular CLI, after you import the GaugeModule in your app.module.ts (using :import { GaugeModule } from 'ng-gauge') you have to mention it in the "imports" Array under "@ng-module{ }".

angular-ng-gauge

nowrap commented 7 years ago

Any news on this issue. I am getting this error, too.

Ionic Framework: 3.6.1
Ionic App Scripts: 2.1.4
Angular Core: ^4.4.3
Angular Compiler CLI: ^4.4.3
Node: 8.5.0
eduibrahim commented 6 years ago

Same here