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

[Server] Mutating source files resulting in them being invalid #2652

Open
Garbee opened this issue Feb 24, 2024 · 0 comments
Open

[Server] Mutating source files resulting in them being invalid #2652

Garbee opened this issue Feb 24, 2024 · 0 comments

Comments

@Garbee
Copy link

Garbee commented Feb 24, 2024

Problem

It seems the server is doing something that mutates the code as it is resolved. This mutation is causing some source files to end up invalid, thus breaking builds.

Sample Case

https://github.com/Garbee/dev-server-sample/tree/main

https://www.npmjs.com/package/@langchain/core is being broken when ran through the server. At least for their "RemoteRunnable" class. The last quote in the imported file is removed, resulting in a JS file that has invalid syntax.

Expected Result

Files to not end up invalid, thus not breaking builds.

Workaround

For now, I've worked around this issue by introducing Rollup to just compile everything first. Even when developing locally.

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