Skip to content

rn 0.52.0 TypeError: Cannot read property 'sections' of undefined #38

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

Closed
dluksza opened this issue Jan 9, 2018 · 3 comments
Closed

Comments

@dluksza
Copy link

dluksza commented Jan 9, 2018

After migrating to react-native 0.52.0 and updating react-native-typescript-transformer to current master (commit: 5c428f8) I'm getting following error

error: bundling failed: TypeError: Cannot read property 'sections' of undefined
    at new SourceMapConsumer (node_modules/source-map/lib/source-map-consumer.js:20:20)
    at composeSourceMaps (node_modules/react-native-typescript-transformer/index.js:89:25)
    at Object.module.exports.transform (node_modules/react-native-typescript-transformer/index.js:192:9)
    at Object.transformCode [as transform] (node_modules/metro/src/JSTransformer/worker/index.js:207:15)
    at execMethod (node_modules/metro/node_modules/jest-worker/build/child.js:92:29)
    at process.on (node_modules/metro/node_modules/jest-worker/build/child.js:42:7)
    at emitTwo (events.js:126:13)
    at process.emit (events.js:214:7)
    at emit (internal/child_process.js:772:12)
@dluksza
Copy link
Author

dluksza commented Jan 9, 2018

This is a known issue: #37 (comment)

@ds300
Copy link
Owner

ds300 commented Jan 9, 2018

Thanks for the report. I just published a fix for this in 1.1.6

@dluksza
Copy link
Author

dluksza commented Jan 9, 2018

Verified that this error doesn't occur on 1.1.6

@dluksza dluksza closed this as completed Jan 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants