Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

全局模式下引用antd,IE8环境报错 #1970

Closed
dyf2015 opened this issue Jun 5, 2016 · 4 comments
Closed

全局模式下引用antd,IE8环境报错 #1970

dyf2015 opened this issue Jun 5, 2016 · 4 comments
Assignees

Comments

@dyf2015
Copy link

dyf2015 commented Jun 5, 2016

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

SCRIPT1028: 缺少标识符、字符串或数字

@afc163
Copy link
Member

afc163 commented Jun 5, 2016

这个问题之前修复过。但是不知道为何 https://github.com/ant-design/antd-tools/blob/master/lib/getWebpackConfig.js#L83 这里没作用。

@ddcat1115 一并和 #1968 看下吧。本地确保打包出来的是下面这样的,在 IE8下不报错后,再发布一个新版:

- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

@dyf2015
Copy link
Author

dyf2015 commented Jun 5, 2016

谢谢,大概几点完成,我们这边也同步更新到我们项目里。

发自我的 iPhone

在 2016年6月5日,19:21,偏右 <notifications@github.commailto:notifications@github.com> 写道:

这个问题之前修复过。但是不知道为何 https://github.com/ant-design/antd-tools/blob/master/lib/getWebpackConfig.js#L83 这里没作用。

@ddcat1115https://github.com/ddcat1115 一并和 #1968#1968 看下吧。本地确保打包出来的是下面这样的再发布一个新版:

  • function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  • function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/1970#issuecomment-223807659, or mute the threadhttps://github.com/notifications/unsubscribe/APjvyVcNiPJY--LY5BO3FrtW7D1Ff76jks5qIrEzgaJpZM4IuT2-.

@dyf2015
Copy link
Author

dyf2015 commented Jun 5, 2016

修改后报新的错误
`function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var TabPane = _react2.default.createClass({
  displayName: 'TabPane',

  propTypes: {
    active: _react.PropTypes.bool
  },
  render: function render() {
    var _classnames;

    var props = this.props;
    this._isActived = this._isActived || props.active;
    if (!this._isActived) {
      return null;
    }
    var prefixCls = props.rootPrefixCls + '-tabpane';
    var cls = (0, _classnames3.default)((_classnames = {}, _defineProperty(_classnames, prefixCls + '-hidden', !props.active), _defineProperty(_classnames, prefixCls, 1), _classnames));
    return _react2.default.createElement(
      'div',
      {
        role: 'tabpanel',
        'aria-hidden': props.active ? 'false' : 'true',
        className: cls
      },
      props.children
    );
  }
});`

SCRIPT1010: 缺少标识符 var TabPane = _react2.default.createClass({

afc163 referenced this issue in ant-design/antd-tools Jun 6, 2016
ddcat1115 added a commit that referenced this issue Jun 6, 2016
afc163 added a commit that referenced this issue Jun 6, 2016
@ddcat1115 ddcat1115 mentioned this issue Jun 6, 2016
4 tasks
@afc163 afc163 closed this as completed in 250df0f Jun 6, 2016
@lock
Copy link

lock bot commented May 5, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants