GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Plugin loader throws TypeError or executes arbitrary named utility exports in legacy plugins · Issue #50021 · anomalyco/opencode Closed as not planned Closed as not planned Copy link DescriptionDescriptionIn for (const entry of Object.values(mod)) { if (seen.has(entry)) continue seen.add(entry) const plugin = getServerPlugin(entry) if (!plugin) throw new TypeError("Plugin export is not a function") result.push(plugin) } This causes two issues when authoring plugins:
OpenCode version1.18.31 Steps to reproduce
export const MY_CONFIG = { foo: "bar" } export default async function(ctx) { return {} }
Operating SystemLinux Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |