-
Notifications
You must be signed in to change notification settings - Fork 110
Can't get jQuery Working #48
Comments
@rafalkasa Thanks for the response. I did add those typings (even though the latest version of the cli no longer requires a typings file since they're built-in to packages) but I'm still getting the exact same errors |
Also, I was looking at the demo and it imports |
Hi there, I removed the node_modules and typings folder and did a reinstall via npm and now I also get the messages:
I use the latest angular2-seed, where typings is now removed from the default installation. |
Have you tried the latest version 1.2.0 ? |
Yes, i did. |
Same here.. just tried it, same error. |
Same here. |
I got the datepicker (did not use the time picker) working with the angular-cli. I use the following versions on windows 10:
Install the jquery types: Add the dependencies in your "styles": [
"../node_modules/bootstrap/dist/css/bootstrap.css",
"../node_modules/font-awesome/css/font-awesome.css",
"../node_modules/ng2-datetime/src/vendor/bootstrap-datepicker/bootstrap-datepicker3.min.css",
"styles.css"
] "scripts": [
"../node_modules/jquery/dist/jquery.js",
"../node_modules/ng2-datetime/src/vendor/bootstrap-datepicker/bootstrap-datepicker.min.js"
] Now you can add the This worked for me, I hope it helps. |
I have the same issue with
using webpack |
after run npm install --save-dev @types/bootstrap, works for ng serve. |
I am also getting error of "cannot find name '$'" |
I got it to work after following Rafalkasa's advice and then xtreemrage's advice |
npm install @types/jquery --save-dev and then add "types": [ in file tsconfig.json |
I've the same problem here : |
if you use angular-cli, add in typings.d.ts this: |
import * as $ from 'jquery' ==> in app.module.ts |
None of the above solutions worked for me. In fact, when I ran npm intall --save-dev, the entire thing exploded. Now, I get. ERROR in ./node_modules/ng2-datetime/ng2-datetime.ts |
FOLLOW THESE STEPS:
That should do the trick and no need to put |
This is what worked for me (all the installation in Angular 5): in .angular-cli.json: in app.modules.ts: imports: [ ... NKDatetimeModule ], and in src\tsconfig.app.json: |
Using Angular RC7, angular-cli webpack.9-4, I can't get JQuery working. In my app.module, I've got
and then I import NKDatetime into my declarations.
When webpack runs, I get
No idea what I'm doing wrong.
The text was updated successfully, but these errors were encountered: