Global is not defined at ../node_modules/socket.io-parser/is-buffer.js

断了今生、忘了曾经 提交于 2019-12-03 11:23:20
(window as any).global = window

As already mentioned in comment, add the above code in the polyfills.ts file.

To fix this issue you need to open the file your_angular_setup/src/polyfills.ts and then add the line below at the bottom of the file.

    (window as any).global = window

and you will see that your issue is fixed.

In src/index.html in the head add

<script>
    var global = global || window;
</script>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!