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

Latest version of Vite causes a CORS issue #52

Closed
gavinmcfarland opened this issue Jan 29, 2025 · 0 comments · May be fixed by #51
Closed

Latest version of Vite causes a CORS issue #52

gavinmcfarland opened this issue Jan 29, 2025 · 0 comments · May be fixed by #51
Labels
bug Something isn't working

Comments

@gavinmcfarland
Copy link
Owner

gavinmcfarland commented Jan 29, 2025

When creating a new Plugma plugin using:

npm create plugma@latest

You may encounter the following issue when trying to run the plugin:

Dev server inactive

Cause

This issue is caused by an update to Vite, a dependency used by Plugma. By default, Vite is set to automatically update to the latest version, which may introduce breaking changes.

Solution

To resolve this issue, manually specify Vite version 5.4.10 in your package.json file to prevent it from automatically using the latest version.

  1. Open your package.json file.

  2. Locate the Vite dependency and update it to:

    "vite": "5.4.10"
  3. Run:

    npm install

    to apply the changes.

A fix will be published soon.

@gavinmcfarland gavinmcfarland added the bug Something isn't working label Jan 29, 2025
@gavinmcfarland gavinmcfarland modified the milestone: Next release Feb 3, 2025
@gavinmcfarland gavinmcfarland linked a pull request Feb 3, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant