-
Notifications
You must be signed in to change notification settings - Fork 36
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
[Bug]: Source Map Errors from Headless Dependencies #4883
Comments
coveo-error-reproduction.tar.gz Sample project to demonstrate. |
Hey @markdav , thanks for this detailed issue :) What we'll probably do is:
That's our plan; we will validate whether it can be applied in the coming weeks without breaking changes. |
Excellent - thanks Louis - that sounds better again - appreciate the attention! |
Fixed by #4987 and #4986, it should be released in It should be promoted soon on NPM as The plan I detailed here is still ongoing and will be delivered as progressive improvements in the coming weeks. |
Which product are you using?
Headless
product version
3.13.2
bug description
Source Map Errors from Dependencies
Description
When using @coveo/headless in a Create React App project, multiple source map parsing errors appear in the console during development. These errors come from two dependencies:
Impact
While these errors don't affect functionality, they:
Proposed Solutions
Option 1: Bundle Dependencies (Recommended)
Bundle
@microsoft/fetch-event-source
andexponential-backoff
into the main package output instead of keeping them as external dependencies. This would involve:Option 2: Fix Source Map Generation
If keeping these as external dependencies is preferred:
Workarounds for Users
Until this is fixed, users can:
Environment
Let me know if you need any additional information or clarification.
Steps to reproduce
Reproduction Steps
npx create-react-app repro cd repro
npm start
Error Output
Relevant log output
The text was updated successfully, but these errors were encountered: