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

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

Open
qiluo opened this issue May 3, 2017 · 8 comments

Comments

@qiluo
Copy link

qiluo commented May 3, 2017

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
Copy link

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
Copy link

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

@lassogames
Copy link

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
Copy link

Hi,

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

Thanks in advance.

@cocaybica
Copy link

same here.

Ionic 3 Project

@aduggirala28
Copy link

aduggirala28 commented Sep 22, 2017

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
Copy link

nowrap commented Sep 27, 2017

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
Copy link

Same here

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

9 participants