所以我一直有問題得到我的angular app to build。在之前的一個問題中,有人建議從全新安裝開始...所以,絕望之餘,這就是我所做的。Angular2 - jquery不工作
下面是一系列新的問題......
這似乎jQuery是不承認:
> ng serve
** NG Live Development Server is running on http://localhost:4200 **
Hash: d1f891d598c9af6a8b6f
Time: 5768ms
chunk {0} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 153 kB {4} [initial] [rendered]
chunk {1} main.bundle.js, main.bundle.js.map (main) 119 kB {3} [initial] [rendered]
chunk {2} styles.bundle.js, styles.bundle.js.map (styles) 9.77 kB {4} [initial] [rendered]
chunk {3} vendor.bundle.js, vendor.bundle.js.map (vendor) 2.99 MB [initial] [rendered]
chunk {4} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [rendered]
WARNING in ./src/app/app.component.ts
138:336-345 "export 'AppConfig' was not found in './app-config'
WARNING in ./src/app/app.component.ts
138:365-374 "export 'AppConfig' was not found in './app-config'
ERROR in ..src/app/app.component.ts (89,5): Cannot find name '$'.)
../src/app/app.component.ts (89,18): Cannot find name '$'.)
../src/app/app.component.ts (107,9): Cannot find name '$'.)
../src/app/app.component.ts (110,11): Cannot find name '$'.)
../src/app/app.component.ts (117,9): Cannot find name '$'.)
../src/app/app.component.ts (128,9): Cannot find name '$'.)
../src/app/app.component.ts (131,9): Cannot find name '$'.)
../src/app/app.component.ts (133,11): Cannot find name '$'.)
../src/app/app.component.ts (146,9): Cannot find name '$'.)
../src/app/app.component.ts (157,42): Cannot find name '$'.)
../src/app/app.component.ts (160,9): Cannot find name '$'.)
../src/app/app.component.ts (165,11): Cannot find name '$'.)
../src/app/app.component.ts (174,5): Cannot find name '$'.)
../src/app/app.component.ts (178,9): Cannot find name '$'.)
../src/app/app.component.ts (185,5): Cannot find name '$'.)
../src/app/app.component.ts (186,7): Cannot find name '$'.)
ERROR in ../src/app/service/login.service.ts (9,12): Cannot find name '$'.)
../src/app/service/login.service.ts (16,17): Cannot find name '$'.)
../src/app/service/login.service.ts (17,17): Cannot find name '$'.)
任何建議,如何解決這個問題?
你在使用jQuery的? – 2017-02-28 16:02:36