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

back top 编译出错。 #3283

Closed
lincolnge opened this issue Oct 1, 2016 · 3 comments
Closed

back top 编译出错。 #3283

lincolnge opened this issue Oct 1, 2016 · 3 comments

Comments

@lincolnge
Copy link

发生问题的环境是:

~/Desktop/work/tech/turbo/turbo_project/node_modules/gulp/node_modules/orchestrator/index.js:153
throw err;
^

ReferenceError: window is not defined
at /Desktop/work/tech/turbo/turbo_project/node_modules/antd/dist/webpack:/components/back-top/index.tsx:55:1
at Object.defineProperty.value (
/Desktop/work/tech/turbo/turbo_project/node_modules/antd/dist/webpack:/components/back-top/index.tsx:65:2)
at webpack_require (/Desktop/work/tech/turbo/turbo_project/node_modules/antd/dist/webpack:/webpack/bootstrap 7748098c79ae00940d3f:19:1)
at webpackContext (
/Desktop/work/tech/turbo/turbo_project/node_modules/antd/dist/webpack:/components ^./[^_][\w-]+/(style/):103:1)
at /Desktop/work/tech/turbo/turbo_project/node_modules/antd/dist/webpack:/index.js:15:1
at Array.forEach (native)
at Object.defineProperty.value (
/Desktop/work/tech/turbo/turbo_project/node_modules/antd/dist/webpack:/index.js:14:1)
at webpack_require (/Desktop/work/tech/turbo/turbo_project/node_modules/antd/dist/webpack:/webpack/bootstrap 7748098c79ae00940d3f:19:1)
at Object.module.exports (
/Desktop/work/tech/turbo/turbo_project/node_modules/antd/dist/antd.js:86:19)
at webpack_require (~/Desktop/work/tech/turbo/turbo_project/node_modules/antd/dist/webpack:/webpack/bootstrap 7748098c79ae00940d3f:19:1)

  • antd 版本: 2.0.1
  • 操作系统及其版本: Mac OS X 10.11.6
  • 浏览器及其版本: Chrome

您做了什么?

编译的时候就出错了

您期待的结果是:

实际上的结果是:

可重现的在线演示

@benjycui
Copy link
Contributor

benjycui commented Oct 2, 2016

可以提供个能重现问题的 repo?

@binzeehale
Copy link

多久出小版本,我也遇到这个问题了

@lock
Copy link

lock bot commented May 4, 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 4, 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