TypeError: Cannot read property 'slice' of undefined
I have installed web3 using npm. When I import web3 in my react application I get the error "TypeError: Cannot read property 'slice' of undefined"
Following are the version of packages I am using in my application "webpack": "2.6.1", "webpack-dev-server": "2.4.5", "web3": "^1.0.0-beta.36", npm: 5.6.0, node: 8.11.4

Please put the related code snippet.
When I import web3 in my application (Import Web3 from 'web3' ) and run it, I get the above one error. But when I downgrade web3js to 0.20.6. It works fine.
Hi @awprasad could you elaborate a bit on the issue?
After import Web3 from 'web3' do you call Web3?
Also please note that since web3 v1.0.0 is a major version upgrade, it contains breaking changes. If you have code in your application that is using the old version 0.20.6 of Web3, you will have to refactor your code to work with the new updated web3 library
@awprasad possibly you are not checking the nullity condition.
Ex: If you have an array, and you want to apply slice method over it, you also have to check for existence of some element inside array may be using array.length
Closed because of the ongoing clean up of the issue list. Feel free to ask this in our gitter channel or on stackoverflow.
i had the same issue
i tried uninstall and reinstall web3, worked ...