我正在使用visual studio学习typeScript并尝试进行简单的类导出.我已多次看到这个问题,但没有一个解决方案对我有帮助.我究竟做错了什么 ?
仍然是相同的错误"未捕获的ReferenceError:导出未定义在......"
import { Address } from "./address";
class Customer {
protected name: string = "";
public addressObj: Address = new Address();
private _CustomerName: string = "";
public set CustomerName(value: string) {
if (value.length == 0) {
throw "Customer name is requaierd"
}
this._CustomerName = value;
}
public get CustomerName(): string {
return this._CustomerName;
}
}Run Code Online (Sandbox Code Playgroud)
export class Address {
public street1: string = "";
}Run Code Online (Sandbox Code Playgroud)
<!doctype html>
<html>
<head>
<title></title>
<meta …Run Code Online (Sandbox Code Playgroud)我正在尝试安装反应原生的环境.我按照网站的指示,直到进入cmd的点
create-react-native-app AwesomeProject
Run Code Online (Sandbox Code Playgroud)
几分钟后,我收到一条绿色的大信息:
You are currently running Node v0.12.2.
React Native runs on Node 4.0 or newer. There are several ways to
upgrade Node.js depending on your preference.
nvm: nvm install node && nvm alias default node
Homebrew: brew unlink iojs; brew install node
Installer: download the Mac .pkg from https://nodejs.org/
About Node.js: https://nodejs.org
Follow along at: https://github.com/facebook/react-native/issues/2545
Run Code Online (Sandbox Code Playgroud)
我尝试升级我的nodejs但我有最新版本的网站.为什么它仍然会抛出这个错误?