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
The issue here is the tslib package has a directory called modules, so as we can see in the logs above, node_modules was getting string replaced instead of at the end of the path.
Doing this seems to work
root=root.substring(0,root.lastIndexOf(segment));
The text was updated successfully, but these errors were encountered:
thescientist13
changed the title
import map generation not finding _package.json_ for some libraries like **tslib** (when recursively segmenting entry point)
import map generation not finding package.json for some libraries like tslib (when recursively segmenting entry point)
Jan 17, 2025
Type of Change
Bug
Summary
Observed in AnalogStudiosRI/api#44 that Greenwood's import map generation was showing a warning that it could not find a package.json for tslib
Which is odd because tslib definitely has
main
andmodule
entry points defined. 🤔Details
After a little debugging, the issue is in the naivety of our logic that recursively walks up from the entry point to the first valid package.json as it slowly trims the path as it walks up
The issue here is the tslib package has a directory called modules, so as we can see in the logs above, node_modules was getting string replaced instead of at the end of the path.
Doing this seems to work
The text was updated successfully, but these errors were encountered: