You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vite build throws fatal error: Error: useLocation() may be used only in the context of a <Router> component, whenever <ExternalScripts/> component is used on root.tsx.
Describe the bug
Vite build throws fatal error:
Error: useLocation() may be used only in the context of a <Router> component
, whenever<ExternalScripts/>
component is used on root.tsx.Remix versions affected: 2.x - 2.15.3
Your Example Website or App
Steps to Reproduce the Bug or Issue
<ExternalScripts/>
on your root.tsx file (insideLayout
exportable component).Expected behavior
Server should not throw fatal error. We should have ability to use
<ExternalScripts/>
component.Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: