我正在将现有的react项目从es5转换为es6。我有babel-preset-react。当我将es6添加到myFile.js中时,会得到错误:
var React = require('react'); let m = 0;//add this and I get an error
render: function() {
我正在用gulp打字本来编译我的打字记录文件。它可以工作,但是--它找不到外部模块,比如“@ar角/核心”。如何配置TSC以在node_modules中查找这些模块?/app/ (angular2 components, ...)......./node_modules/ (angular2 and other dependencies)
.......