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

add "type": "module" to solid spa templates #152

Open
huseeiin opened this issue Oct 8, 2024 · 0 comments
Open

add "type": "module" to solid spa templates #152

huseeiin opened this issue Oct 8, 2024 · 0 comments

Comments

@huseeiin
Copy link

huseeiin commented Oct 8, 2024

when you uncomment solid-devtools,

import { defineConfig } from "vite";
import solidPlugin from "vite-plugin-solid";
import devtools from "solid-devtools/vite";

export default defineConfig({
  plugins: [
    /* 
    Uncomment the following line to enable solid-devtools.
    For more info see https://github.com/thetarnav/solid-devtools/tree/main/packages/extension#readme
    */
    devtools(),
    solidPlugin(),
  ],
  server: {
    port: 3000,
  },
  build: {
    target: "esnext",
  },
});

vite is gonna crash because it cannot resolve solid-devtools without "type": "module"

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