Skip to content
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

Fix wrong CableReady import #146

Merged
merged 1 commit into from
Sep 7, 2021
Merged

Fix wrong CableReady import #146

merged 1 commit into from
Sep 7, 2021

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?

javascript/stream_from_element.js Outdated Show resolved Hide resolved
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