You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[bug]After upgrading to 0.5.1, NVM is exported by default, but native.js is imported by default in NVM, which causes the standard Date and Math objects to be replaced, and reports that 'Blockchain.block' is not defined.
#51
Open
xiwangzishi opened this issue
Jun 15, 2018
· 2 comments
升级到 0.5.1 后,默认导出了 NVM。index.js 第 8 行
但是 NVM 里面默认引入了 native.js 。nvm.js 第 4 行
native.js 会导致在浏览器环境下标准 Date 和 Math 对象被替换
而且会报
'Blockchain.block' is not defined.
(因为Date对象依赖 Blockchain.block,而浏览器环境没有这个)建议默认不要导出 NVM
The text was updated successfully, but these errors were encountered: