bra1nDump / show-me-chatgpt-plugin

Create and edit diagrams in ChatGPT
https://showme.redstarplugin.com
675 stars 70 forks source link

Small error when running "npm run dev" on windows #40

Closed oscaramos closed 1 year ago

oscaramos commented 1 year ago

When I run the command npm run dev on Windows it shows the error:

Unexpected value for script: ["run","build'","build/index.js"] (expected string)

It is related to this line on the package.json:

"dev": "miniflare --build-watch-path src --build-command 'npm run build' --wrangler-config wrangler.local.toml --kv SHORTEN --kv-persist --modules build/index.js",

The way to solve is by replacing the 'npm run build' to \"npm run build\"

I was not able to test if the change would break on other operative systems or even if it was only my computer