Please provide us with the following information:
- OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Win10
- Versions. Please run
ng --version. If there's nothing outputted, please
run in a Terminal:
node --version
And paste the result here.
angular-cli: 1.0.0-beta.10
node: 6.1.0
os: win32 x64
- Repro steps. Was this an app that wasn't created using the CLI? What change did you
do on your code? etc.
Loading jQuery as a 3rd partly library, references in components fail.
npm i jquery --save
typings install dt~jquery --global --save
angular-cli-build.js:
'jquery/dist/jquery.min.+(js|map)',
system-config.js:
const map: any = { 'jquery': 'vendor/jquery/dist/' };
const packages: any = { 'jquery': { defaultExtension: 'js', main: 'jquery.min.js', format: 'cjs' } };
app.component.ts:
import * as jquery from 'jquery'; . . . console.log(jquery); . . . jQuery('#input');
-
The log given by the failure. Normally this include a stack trace and some
more information.
-
Mention any other details that might be useful.
https://github.com/rkralston/test-app
Thanks! We'll be in touch soon.
ng --version. If there's nothing outputted, pleaserun in a Terminal:
node --version
And paste the result here.
angular-cli: 1.0.0-beta.10
node: 6.1.0
os: win32 x64
do on your code? etc.
Loading jQuery as a 3rd partly library, references in components fail.
npm i jquery --savetypings install dt~jquery --global --saveangular-cli-build.js:
'jquery/dist/jquery.min.+(js|map)',system-config.js:
const map: any = { 'jquery': 'vendor/jquery/dist/' };const packages: any = { 'jquery': { defaultExtension: 'js', main: 'jquery.min.js', format: 'cjs' } };app.component.ts:
import * as jquery from 'jquery'; . . . console.log(jquery); . . . jQuery('#input');The log given by the failure. Normally this include a stack trace and some
more information.
Mention any other details that might be useful.
https://github.com/rkralston/test-app