Coder Social home page Coder Social logo

Comments (8)

olimungo avatar olimungo commented on July 23, 2024

I have the same issue with jquery.d.ts. VS Code doesn't complain, but compiler do.

from angular-cli.

anhallbe avatar anhallbe commented on July 23, 2024

I'm having this issue as well. Although I'm new to TypeScript so I may be doing something wrong.

I fetched some definitions using tsd, and added this to my tsconfig.json:

"files": [
    "typings/tsd.d.ts"
  ]

My IDE (Atom, using the atom-typescript package) does not complain, but building it during 'ng serve' fails with a "Cannot find name ... " error.

from angular-cli.

josephfinlayson avatar josephfinlayson commented on July 23, 2024

Also having this issue!

// <reference path="../typings/jquery/jquery.d.ts" />
import jQuery = require('jquery');

How would I import jQuery into this project?

from angular-cli.

cexbrayat avatar cexbrayat commented on July 23, 2024

Same here: IDE is fine, but ng serve is broken if we use other typings (even if they are properly declared in tsconfig.json as the IDE pick them up).

Is there something else to configure?

from angular-cli.

Brocco avatar Brocco commented on July 23, 2024

@cexbrayat were you trying with the version on npm or the latest version on master? The reason I ask is that we are overdue to cut a release and there have been some improvements around typings recently.

from angular-cli.

cexbrayat avatar cexbrayat commented on July 23, 2024

We were on master at that time, I did not try since.

from angular-cli.

hansl avatar hansl commented on July 23, 2024

The Broccoli-Typescript plugin is being reworked entirely as part of our move to Broccoli 1.0.

This will be addressed as there are other typing bugs that we need to fix, and this is one of them.

from angular-cli.

angular-automatic-lock-bot avatar angular-automatic-lock-bot commented on July 23, 2024

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

from angular-cli.

Related Issues (20)

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.