storefront-remix-starter icon indicating copy to clipboard operation
storefront-remix-starter copied to clipboard

Remix route error from console

Open blackyzero opened this issue 2 years ago • 2 comments

Hello,

I am getting following error from browser console, not sure if it's reason why the "Wish list" feature not functional or it's still not deployed.

Warning: Did not expect server HTML to contain a <script> in <body>.
footer
Footer@https://store.abc.com/build/root-REVYTQJD.js:282:16
body
html
App@https://store.abc.com/build/root-REVYTQJD.js:446:55
RemixRoute@https://store.abc.com/build/_shared/chunk-AM7YLLF5.js:2588:20
Routes2@https://store.abc.com/build/_shared/chunk-AM7YLLF5.js:2572:7
Router@https://store.abc.com/build/_shared/chunk-AM7YLLF5.js:688:7
RemixCatchBoundary@https://store.abc.com/build/_shared/chunk-AM7YLLF5.js:1081:28
RemixErrorBoundary@https://store.abc.com/build/_shared/chunk-AM7YLLF5.js:1007:5
RemixEntry@https://store.abc.com/build/_shared/chunk-AM7YLLF5.js:2468:20
RemixBrowser@https://store.abc.com/build/_shared/chunk-AM7YLLF5.js:3223:27 react-dom.development.js:67:29

How could i solve it?

Thank you.

blackyzero avatar Jun 10 '22 17:06 blackyzero

The wish list part is non-functional because Vendure by default does not ship with wishlist functionality. It's there more as an example for the layout, a bit like with the reviews.

Regarding that error message - under what circumstances does it appear? What steps would I need to do do reproduce it?

michaelbromley avatar Jun 11 '22 10:06 michaelbromley

Got it thanks @michaelbromley. I also checked other storefronts, and seems those features are already added. it would be great to have those features available on Remix storefront.

About the error message, i just browse the first page with browser console open, and it appears after paged loaded. You can see more detail in attached screenshot.

Screen Shot 2022-06-13 at 9 39 52 AM

Thank you.

blackyzero avatar Jun 13 '22 13:06 blackyzero

This is most likely not an issue from the storefront itself. As stated in the Remix docs, this can occur with browser extensions injecting scripts into the page: https://remix.run/docs/en/v1/pages/gotchas#browser-extensions-injecting-code

Closing this as I haven't been able to reproduce it outside of this.

kyunal avatar Nov 24 '22 12:11 kyunal

Great. Thanks for sharing !

blackyzero avatar Nov 26 '22 02:11 blackyzero