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

Chrome: DevTools failed to load source map #1534

Open
jrson83 opened this issue Aug 31, 2022 · 0 comments
Open

Chrome: DevTools failed to load source map #1534

jrson83 opened this issue Aug 31, 2022 · 0 comments

Comments

@jrson83
Copy link

jrson83 commented Aug 31, 2022

Description

Following the installation without package-manager and running the Website in Chrome, throws the following warning in console:

DevTools failed to load source map: Could not load content for https://cdn.jsdelivr.net/npm/@docsearch/index.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

When including the full URL to index.js instead, the sourcemap is loaded without warnings:

<script src="https://cdn.jsdelivr.net/npm/@docsearch/js@3/dist/umd/index.js"></script>

Steps to reproduce

Since on codesandbox there are tons of errors in the console, I used jsfiddle for an example (less errors):

  1. With Chrome, go to https://jsfiddle.net/jrson83/9gcqdxah/4/
  2. Open Chrome dev tools
  3. Refresh the page
  4. See warning

Live reproduction:

Expected behavior

  • Sourcemap gets resolved without console warning.

Environment

  • OS: Windows 11
  • Browser: Chrome &Chrome Canary
  • DocSearch version: 3.2.1
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

1 participant