Skip to content

Comments

Fix wrong CableReady import#146

Merged
marcoroth merged 1 commit intostimulusreflex:masterfrom
n-rodriguez:fix_import
Sep 7, 2021
Merged

Fix wrong CableReady import#146
marcoroth merged 1 commit intostimulusreflex:masterfrom
n-rodriguez:fix_import

Conversation

@n-rodriguez
Copy link
Contributor

Fix this error:

ERROR in ./.yarn/cache/cable_ready-npm-5.0.0-pre3-b6a471a50a-bf6c2acdbd.zip/node_modules/cable_ready/javascript/stream_from_element.js 15:33-51
export 'default' (imported as 'CableReady') was not found in 'cable_ready' (possible exports: initialize, perform, performAsync)

Copy link
Member

@marcoroth marcoroth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @n-rodriguez

Thank you for this pull request!

I think it would even make more sense if we just import the perform function from the cable_ready.js file and update L15 to:

            if (data.cableReady) perform(data.operations)

What do you think?

Fix this error:

ERROR in ./.yarn/cache/cable_ready-npm-5.0.0-pre3-b6a471a50a-bf6c2acdbd.zip/node_modules/cable_ready/javascript/stream_from_element.js 15:33-51
export 'default' (imported as 'CableReady') was not found in 'cable_ready' (possible exports: initialize, perform, performAsync)
@n-rodriguez
Copy link
Contributor Author

@marcoroth good catch! it's fixed.

@marcoroth marcoroth merged commit ab38a3b into stimulusreflex:master Sep 7, 2021
@marcoroth
Copy link
Member

Thank you @n-rodriguez!

@leastbad
Copy link
Contributor

leastbad commented Sep 7, 2021

Great work on this.

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

Successfully merging this pull request may close these issues.

3 participants