-
Notifications
You must be signed in to change notification settings - Fork 2.6k
fix(chore): fixes webpack-stream error with missing catch var declaration #2291
fix(chore): fixes webpack-stream error with missing catch var declaration #2291
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@claudiopro has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@claudiopro has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@claudiopro has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@claudiopro merged this pull request in 4252469. |
…tion (facebookarchive#2291) Summary: **Summary** Fixes an error thrown by `webpack-stream` with the missing catch var declaration ``` [16:12:34] '<anonymous>' errored after 8.42 s [16:12:34] Error in plugin "webpack-stream" Message: ./lib/setDraftEditorSelection.js Module parse failed: Unexpected token (278:12) You may need an appropriate loader to handle this file type. | try { | selection.addRange(range); | } catch {// ignore | } | } else { @ ./lib/DraftEditorLeaf.react.js 29:30-66 @ ./lib/DraftEditorBlock.react.js @ ./lib/Draft.js Details: domain: [object Object] domainThrown: true ``` **Test Plan** ``` yarn ``` Build completes without errors Pull Request resolved: facebookarchive#2291 Reviewed By: mrkev Differential Revision: D19230824 Pulled By: claudiopro fbshipit-source-id: 9fdc2ebbee654404458851f6fd14a367c33a23e4
…tion (facebookarchive#2291) Summary: **Summary** Fixes an error thrown by `webpack-stream` with the missing catch var declaration ``` [16:12:34] '<anonymous>' errored after 8.42 s [16:12:34] Error in plugin "webpack-stream" Message: ./lib/setDraftEditorSelection.js Module parse failed: Unexpected token (278:12) You may need an appropriate loader to handle this file type. | try { | selection.addRange(range); | } catch {// ignore | } | } else { @ ./lib/DraftEditorLeaf.react.js 29:30-66 @ ./lib/DraftEditorBlock.react.js @ ./lib/Draft.js Details: domain: [object Object] domainThrown: true ``` **Test Plan** ``` yarn ``` Build completes without errors Pull Request resolved: facebookarchive#2291 Reviewed By: mrkev Differential Revision: D19230824 Pulled By: claudiopro fbshipit-source-id: 9fdc2ebbee654404458851f6fd14a367c33a23e4
…tion (#2291) Summary: **Summary** Fixes an error thrown by `webpack-stream` with the missing catch var declaration ``` [16:12:34] '<anonymous>' errored after 8.42 s [16:12:34] Error in plugin "webpack-stream" Message: ./lib/setDraftEditorSelection.js Module parse failed: Unexpected token (278:12) You may need an appropriate loader to handle this file type. | try { | selection.addRange(range); | } catch {// ignore | } | } else { @ ./lib/DraftEditorLeaf.react.js 29:30-66 @ ./lib/DraftEditorBlock.react.js @ ./lib/Draft.js Details: domain: [object Object] domainThrown: true ``` **Test Plan** ``` yarn ``` Build completes without errors Pull Request resolved: facebookarchive/draft-js#2291 Reviewed By: mrkev Differential Revision: D19230824 Pulled By: claudiopro fbshipit-source-id: 9fdc2ebbee654404458851f6fd14a367c33a23e4
Summary
Fixes an error thrown by
webpack-stream
with the missing catch var declarationTest Plan
Build completes without errors