Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scary error message with build that doesn't affect the build #2375

Open
mooreds opened this issue Jul 29, 2023 · 0 comments
Open

Scary error message with build that doesn't affect the build #2375

mooreds opened this issue Jul 29, 2023 · 0 comments

Comments

@mooreds
Copy link
Contributor

mooreds commented Jul 29, 2023

When I upgraded the versions of semver, vite and @babel/core per dependabot, we start seeing errors in the build:

https://github.com/FusionAuth/fusionauth-site/actions/runs/5697466455/job/15444222535

Error: R] Invalid command: on-resolve [plugin JavaScript plugins]

    node_modules/esbuild/lib/main.js:734:12:
      734 │       throw new Error(`Invalid command: ` + request.command);
          ╵             ^

    at handleRequest (/home/runner/work/fusionauth-site/fusionauth-site/astro/node_modules/esbuild/lib/main.js:734:13)
    at handleIncomingPacket (/home/runner/work/fusionauth-site/fusionauth-site/astro/node_modules/esbuild/lib/main.js:755:7)
    at Socket.readFromStdout (/home/runner/work/fusionauth-site/fusionauth-site/astro/node_modules/esbuild/lib/main.js:679:7)
    at Socket.emit (node:events:514:28)
    at addChunk (node:internal/streams/readable:324:12)
    at readableAddChunk (node:internal/streams/readable:297:9)
    at Readable.push (node:internal/streams/readable:234:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)

  The plugin "JavaScript plugins" was triggered by this import

These don't appear to actually affect the build, and are because of vite components. I was able to change an article and have it stick, and the build doesn't fail.

Apparently if you upgrade to the latest version as of around May 4, the problem goes away: withastro/astro#6631

We're a ways behind astro (2.9.x is the latest, we're on 2.0.x): https://github.com/withastro/astro/releases and I tried to upgrade to 2.9.6, but got an error I couldn't figure out how to fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant