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

Error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'id') #61

Open
lpranger opened this issue May 9, 2023 · 2 comments

Comments

@lpranger
Copy link

lpranger commented May 9, 2023

I am running Rails 7 with importmap to the cdn link.

Its being load in the application.js within the initial load in the view mode it errors and does NOT work and needs the page to refresh to work. When you click into edit mode it works but clicking back to view mode it errors also with the the error mentioned in the subject line. Any idea?

Thanks

Larry

@trvswgnr
Copy link
Owner

hi @lpranger could you provide some more detail surrounding the issue and maybe a way i could try to recreate it? without context it's hard to say what's going wrong here. thanks!

@lpranger
Copy link
Author

Yes, right now we are loading the js in the footer and on the face of it all works but still getting errors. Running Rails 7 with turbo-rails where in lies the problem (I believe).

Here's a url to look at
https://www.makernotebook.org/portfolios/cardboard-ferris-wheel-marble-run-1681348251

click on a video or one the various galleries. All works visually but I am getting this error when clicking on a lightbox item.

Uncaught TypeError: Cannot read properties of undefined (reading 'Modal')
at index.js:10:7
at index.bundle.min.js:5:8147
cardboard-ferris-wheel-marble-run-1681348251:1 Unchecked runtime.lastError: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received

Thanks for the response!

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