解决nextjs部署到now上之后出现的“Unable to import module 'now__launcher'”错误 这个错误是由于在next.config.js中直接引用了withLess之类的插件导致的.在now环境下require插件需要在PHASE_PRODUCTION_SERVER阶段下,如果不加这个阶段的判断就会报错. 这个是错误的做法 // ❌ Don't put this here const withCSS = require('@zeit/next-css'); /…
来源:http://blog.csdn.net/happyteafriends/article/details/11554043 github push错误: git push error: The requested URL returned error: 403 Forbidden while accessing https://github.com/wangz/future.git/info/refs git version 1.7.1 OS:CENTOS 解决方案: vim .git/c…
文章是从stackoverflow翻译过来的,原文地址:Relative imports for the billionth time 本文要在原理上解决 python当中相对包导入出现的问题. 问题描述 在win7.32位的电脑上,运行python2.7.3,经常会出现"Attempted relative import in non-package"这样的问题. 为了解决这个问题,我(提问的人)搜索了以下网站,当然还有更多的网站 http://www.python.org/dev…