ant-design / ant-motion

:bicyclist: Animate specification and components of Ant Design
http://motion.ant.design
MIT License
4.59k stars 358 forks source link

在next本地使用可以,部署报错window is not defined #260

Closed XinYueXiao closed 4 years ago

XinYueXiao commented 4 years ago

{ ReferenceError: window is not defined 20:19:36 at getPassive (/home/jkuser/workspace/dev-node-website/node_modules/rc-scroll-anim/lib/util.js:126:3) 20:19:36 at Object. (/home/jkuser/workspace/dev-node-website/node_modules/rc-scroll-anim/lib/ScrollScreen.js:39:36) 20:19:36 at Module._compile (internal/modules/cjs/loader.js:689:30) 20:19:36 at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) 20:19:36 at Module.load (internal/modules/cjs/loader.js:599:32) 20:19:36 at tryModuleLoad (internal/modules/cjs/loader.js:538:12) 20:19:36 at Function.Module._load (internal/modules/cjs/loader.js:530:3) 20:19:36 at Module.require (internal/modules/cjs/loader.js:637:17) 20:19:36 at require (internal/modules/cjs/helpers.js:22:18) 20:19:36 at Object. (/home/jkuser/workspace/dev-node-website/node_modules/rc-scroll-anim/lib/index.js:30:21) type: 'ReferenceError' }

jljsj33 commented 4 years ago

感放反馈

XinYueXiao commented 4 years ago

是要下载这个依赖吗

jljsj33 commented 4 years ago

依赖删了重装就可以了,,线上重新布署