Comments (8)
I have the same issue with jquery.d.ts. VS Code doesn't complain, but compiler do.
from angular-cli.
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.
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.
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.
@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.
We were on master at that time, I did not try since.
from angular-cli.
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.
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)
- environment variables no longer added to main.js with application build HOT 7
- hmr not working HOT 1
- dev-server executor expects certain options, but error message does not give away how to solve HOT 3
- Angular.json budgets not finding the created bundles
- dev-server does not run dependencies HOT 2
- Option to update budgets when building app or export list of initial chunk files HOT 1
- "npm install" always hangs on https://registry.npmjs.org/run-applescript HOT 5
- Angular SSR Migration Bug HOT 8
- serve: serving static files using vite differs from the previous builder HOT 2
- vitePlugins options at serveWithVite HOT 6
- Dynamic template compilation breaks with aot and webpack builder HOT 1
- Angular CLI Cache with Serve ignores custom builder HOT 1
- Angular CLI @angular-devkit/build-angular:application not working with dynamic imports HOT 1
- Localization and baseHref HOT 1
- @angular/build:library builder? HOT 1
- Package subpath error with plugin for Custom esbuild builder HOT 1
- rspack support would be revolutionary HOT 1
- Reduce angular uses of file watcher by leveraging folder watcher (ex: ng serve) HOT 1
- Add support for esbuild chunkNames option HOT 3
- "Uncaught TypeError" switching Angular Builder to "@angular-devkit/build-angular:application" HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-cli.