Skip to content

🗺️ fix: Generate Missing Babel Map File #5

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

Merged
merged 6 commits into from
Apr 10, 2025

Conversation

danny-avila
Copy link
Contributor

Originally #3

What kind of change does this PR introduce? Bug fix

What is the current behavior? #1

What is the new behavior? No more missing map file.

What steps did you take to test this? This is required before we can merge, make sure to test the flow you've updated.

  1. I used terser to generate the missing babel.min.js.map file (based on node_modules/@babel/standalone/babel.js unminified javascript.
  2. I specified my codesandbox server in Librechat and generated an artifact
  3. I checked the console to ensure the missing .map file errors were cleared.

Checklist

  • Documentation
  • Testing
  • Ready to be merged
  • Added myself to contributors table

One thing worth mentioning is that this does not solve the issue raised in #2 - I don't believe that issue is a duplicate of the issue I'm addressing.

Nor does it solve this issue raised in LIbrechat that was converted to a discussion: danny-avila/LibreChat#3989

I can assure you that this is not related to a network problem, as running the server on both AWS infrastructure and on localhost has resulted in the same timeout errors being issued, and it seems to only apply to certain artifacts.

Also you may not agree with my README changes, the codesandbox-browserfs module does not get built unless you use the instructions in the CONTRIBUTING.md file (Specifically by running yarn start to force the codesandbox-browserfs build)

…ifies node 16, so 10 is likely outdated in the CONTRIBUTING.md file. The README.md file does not contain the steps from the CONTRIBUTING.md file for building the codesandbox-browserfs package. I suspect the yarn build:deps script needs to be updated to do this correctly, but the yarn start script does end up building this correctly. If you follow the instructions as written you get errors in both yarn build:deps and yarn build:sandpack, but if you use yarn start, you do not.
@danny-avila danny-avila mentioned this pull request Apr 5, 2025
4 tasks
@danny-avila danny-avila force-pushed the networkninja-fix-babel-sourcemap branch from 97cc488 to 5de8c20 Compare April 5, 2025 19:38
@danny-avila danny-avila changed the title fix: babel sourcemap 🗺️ fix: Generate Missing Babel Map File Apr 10, 2025
@danny-avila danny-avila merged commit b2bcf53 into main Apr 10, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants