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

install.js.map hook #9311

Closed
ajmeraaxesh opened this issue Apr 25, 2024 · 3 comments
Closed

install.js.map hook #9311

ajmeraaxesh opened this issue Apr 25, 2024 · 3 comments

Comments

@ajmeraaxesh
Copy link

Reproduction

No routes matched location "/installHook.js.map" occurs only in Firefox developer edition

System Info

ErrorResponseImpl {
  status: 404,
  statusText: 'Not Found',
  internal: true,
  data: 'Error: No route matches URL "/installHook.js.map"',
  error: Error: No route matches URL "/installHook.js.map"
      at getInternalRouterError (/node_modules/.pnpm/@remix-run+router@1.16.0/node_modules/@remix-run/router/dist/router.cjs.js:4675:59)
      at Object.query (/node_modules/.pnpm/@remix-run+router@1.16.0/node_modules/@remix-run/router/dist/router.cjs.js:3394:19)
      at handleDocumentRequest (/node_modules/.pnpm/@remix-run+server-runtime@2.9.1_typescript@5.4.5/node_modules/@remix-run/server-runtime/dist/server.js:222:35)
      at requestHandler (/node_modules/.pnpm/@remix-run+server-runtime@2.9.1_typescript@5.4.5/node_modules/@remix-run/server-runtime/dist/server.js:141:24)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async nodeHandler (/node_modules/.pnpm/@remix-run+dev@2.9.1_@remix-run+react@2.9.1_react-dom@18.2.0_react@18.2.0__react@18.2.0_types_mxbxlbybzy2zowsmpqm54jbsle/node_modules/@remix-run/dev/dist/vite/plugin.js:844:27)
      at async /node_modules/.pnpm/@remix-run+dev@2.9.1_@remix-run+react@2.9.1_react-dom@18.2.0_react@18.2.0__react@18.2.0_types_mxbxlbybzy2zowsmpqm54jbsle/node_modules/@remix-run/dev/dist/vite/plugin.js:847:15
}
      at async /Users/aajmera/AxeshProjects/Edulab/edulab-exam-remix/node_modules/.pnpm/@remix-run+dev@2.9.1_@remix-run+react@2.9.1_react-dom@18.2.0_react@18.2.0__react@18.2.0_types_mxbxlbybzy2zowsmpqm54jbsle/node_modules/@remix-run/dev/dist/vite/plugin.js:847:15
}

Used Package Manager

pnpm

Expected Behavior

This issue seems to be only limited to firefox developer edition. Would love insight as to why this is the case?

Actual Behavior

The root loader gets triggerred over and over for this which should only occur once

@brophdawg11
Copy link
Contributor

I'm not sure what installHook.js.map is but if you want ot avoid Remix handling this request you will need to handle it yourself (or return a 404) prior to hitting the Remix handler. If you're using using remix-serve you will need to switch to use your own express server so you can handle this request.

@brophdawg11 brophdawg11 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 25, 2024
@ryanbarr
Copy link

installHook.js.map is part of React Dev Tools for Chrome and Firefox, disabling the extension resolves this warning/error.

The extension is making a request for a sourcemap that doesn't exist, which causes Remix to try to handle that file.

@dvnrsn
Copy link

dvnrsn commented May 1, 2024

Not just Firefox Dev but also Firefox main. React Dev Tools is really nice to have. Why is this happening with new Remix apps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants