foxglove / studio

Robotics visualization and debugging

Home Page:https://foxglove.dev/download

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using “main”: “./dist/entrypoint.js” fails at runtime

jhurliman opened this issue · comments

Description

In package.json, using “main”: “./dist/entrypoint.js” instead of “dist/entrypoint.js” fails to load the extension (even though the entry point is valid and recognized by node) because the map of files returned by JSZip includes an entry for “dist/entrypoint.js” but not the dot-prefixed variant.

Expected Behavior

Use path normalization when searching for the entrypoint file in the zip instead of exact string matching.

Internal tracking ticket: FG-5510

Originally filed in the create-foxglove-extension repo. I moved this to the studio repo which handles the loading of the extension. We might learn that we need to fix this in the packaging but my initial hunch is we can solve it in studio.

Thanks for surfacing. The fix for this will be in the next release.