angular2、AngularCLI、下划线和TypeError:\uuu网页\u导入的\u模块\uu 4\u下划线\uuuu。现在不是函数
我在尝试使用angular2和AngularCLI时遇到了麻烦angular2、AngularCLI、下划线和TypeError:\uuu网页\u导入的\u模块\uu 4\u下划线\uuuu。现在不是函数,angular,underscore.js,Angular,Underscore.js,我在尝试使用angular2和AngularCLI时遇到了麻烦 npm install underscore --save npm install --save @types/underscore typings install dt~underscore --global --save 然后: typings.json { "globalDependencies": { "underscore": "registry:dt/underscore#1.8.3+20160908111
npm install underscore --save
npm install --save @types/underscore
typings install dt~underscore --global --save
然后:
typings.json
{
"globalDependencies": {
"underscore": "registry:dt/underscore#1.8.3+20160908111004"
}
}
这在package.json中
"underscore": "^1.8.3",
angular-cli.json
"scripts": [
...,
"../node_modules/underscore/underscore.js"
],
fyi升级为盒子外的lodash fyi升级为盒子外的lodash
"scripts": [
...,
"../node_modules/underscore/underscore.js"
],