Git Product home page Git Product logo

Comments (13)

subarroca avatar subarroca commented on June 19, 2024

You should not declare GaugeLabel nor GaugeSegment in your module, only where you're gonna use it.

Also if you are using system.js you should map it there too.

That's the only thing I see wrong right now.

from ng-gauge.

nowrap avatar nowrap commented on June 19, 2024

Thx for your answer. A system.js i don't have.

I redirected the question to the ionic forum. Maybe it's an ionic specific "mapping" thing.

from ng-gauge.

subarroca avatar subarroca commented on June 19, 2024

Perfect, just let me know

from ng-gauge.

nowrap avatar nowrap commented on June 19, 2024

Today, it worked ...
Only the gauge.component.scss couldn't be loaded. I had to copy it to the www directory.
Unhandled Promise rejection: Failed to load gauge.component.scss ; Zone: <root> ; Task: Promise.then ; Value: Failed to load gauge.component.scss undefined

from ng-gauge.

subarroca avatar subarroca commented on June 19, 2024

It's weird. I'll check again in my code if scss is loading

from ng-gauge.

subarroca avatar subarroca commented on June 19, 2024

I can confirm it's working

from ng-gauge.

Tyler-Darby avatar Tyler-Darby commented on June 19, 2024

@nowrap @subarroca Can you guys post a full example? I'm having trouble getting it to work too

from ng-gauge.

Tyler-Darby avatar Tyler-Darby commented on June 19, 2024

Here's my error that I am getting:

Uncaught Error: Module build failed: TypeError: Cannot read property 'content' of undefined
    at Object.typescriptSourcemapLoaderMemory

from ng-gauge.

subarroca avatar subarroca commented on June 19, 2024

Hi @Tyler-Darby could you specify the version of angular you're using and if it's combined with ionic?

from ng-gauge.

Tyler-Darby avatar Tyler-Darby commented on June 19, 2024

@subarroca I got it working, It was excluded in my tsconfig.json for some reason, all good now. Awesome little component you've got here 👍

from ng-gauge.

zjw1918 avatar zjw1918 commented on June 19, 2024

@Tyler-Darby hi, Having the same problem, "Cannot read property 'content' of undefined", how do you solve that, thanks.

from ng-gauge.

Tyler-Darby avatar Tyler-Darby commented on June 19, 2024

@zjw1918 Are you using Ionic?

I made this tweak to my tsconfig.json file.

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

from ng-gauge.

subarroca avatar subarroca commented on June 19, 2024

Thanks @Tyler-Darby

from ng-gauge.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.