You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: