-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
babelHelpers.typeof is not a function #5
Comments
PR added: #6 |
fixed on master |
there is a problem with ur solution
|
I will check this out |
maybe we could add .babelrc to .npmignore |
sounds like a good idea. I'll check this out right now |
I've tried it out in this branch, but then nothing is installed. So you should revert my PR. Sorry A solution right now would be to install the master branch from version before my PR and then to locally remove the .babelrc-file (and don't forget to repeat this again after reinstalling all node-modules on some day when it becomes necessary) |
if u r using react-native-in-app-utils package, do u mind submit a PR to add this function to that library without .babelrc (chirag04/react-native-in-app-utils#25 (comment)) and we can keep this with .babelrc for now |
Having this issue, and removing the .babelrc from the node_packages/iap-receipt-validator didn't solve the problem...
Not sure how to solve this problem |
@Fandekasp this could be also a sign that other dependencies in your node_modules folder could have an own .babelrc |
@itinance I indeed had many babelrc files within my dependencies, but removing all of them, then deleting watch logs and resetting cache for react-native start didn't solve the issue
Logs
|
@Fandekasp can you narrow it down that the issue only appears when importing and using this library? |
@itinance yes, removing the iap-receipt-validator import statement fixes the issue. |
@Fandekasp it's like operating in the dark.... what happens when you remove this line https://github.com/sibelius/iap-receipt-validator/blob/master/src/index.js#L1 (i am not sure if this is really needed for this piece of code) |
@itinance sorry about that, I'm not good with debugging these issues :( Since the code installed in the node_modules is pure js, I commented the related line But the same error keeps happening. I'll try copy/pasting the es6 code in my project and skip the typeof part as a hack |
update: I could successfully verify the receipt by copying and adapting the code without using babel-polyfill and without doing the typeof condition |
I'm still seeing this error |
I got this working by following @Fandekasp's comment. I'll try to make a PR |
Please check #9 |
it looks like this facebook/react-native#11093 was merged 3 days ago on react native master branch |
let me know if this fix all the problems new version on npm as well 1.0.6 |
Suddenly any .babelrc with preset "es2015" should be avoided in ReactNative-Applications because it gives the exception mentioned in title.
More hints about that can be found in the solution and their comments to this question on SO:
http://stackoverflow.com/questions/39016025/reactnative-babelhelpers-typeof-is-not-a-function
Quote:
The text was updated successfully, but these errors were encountered: