briansunter / logseq-plugin-gpt3-openai

A plugin for GPT-3 AI assisted note taking in Logseq
https://twitter.com/bsunter
MIT License
717 stars 77 forks source link

Illegal Logseq plugin package.what's wrong? #140

Open 20130216 opened 2 months ago

20130216 commented 2 months ago

I followed your instructions exactly:

First run npm i and npm run build

In logseq load the plugin folder dist from the package.json file above using the npm run build command,

Install the plugin for local logseq by loading the dist folder.

The following error alerts occur:

instrument.js:191 ERROR: [PluginLocal][19:46:11] loadParse package config error #/Users/wingzheng/Desktop/github/logseq-zotero/logseq-plugin-gpt3-openai/dist/package.json IllegalPluginPackageError: Parse package config error #/Users/wingzheng/Desktop/github/logseq-zotero/logseq-plugin-gpt3-openai/dist/package.json at br._preparePackageConfigs (file:///Applications/Logseq.app/Contents/Resources/app/js/lsplugin.core.js:2:94927) at async br.load (file:///Applications/Logseq.app/Contents/Resources/app/js/lsplugin.core.js:2:98913) at async vr.register (file:///Applications/Logseq.app/Contents/Resources/app/js/lsplugin.core.js:2:103590) at async vr.register (file:///Applications/Logseq.app/Contents/Resources/app/js/lsplugin.core.js:2:102645)

Also remind:

Illegal Logseq plugin package.

What went wrong after a day of incomprehension?

briansunter commented 1 month ago

I updated the instructions to use pnpm, could you try that?