slinkity / slinkity

To eleventy and beyond! The all-in-one tool for templates where you want them, component frameworks where you need them 🚀

Home Page:https://slinkity.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: vite.createFilter is not a function

petar-v opened this issue · comments

Describe the bug

Hi! Thank you for your excellent work on this project!

I am trying to add slinkity to my existing website following the "Quick start" guide.

To Reproduce

Steps to reproduce the behavior:

  1. Follow the "Quick start guide"
  2. Follow the steps under "Add to your existing 11ty project"
  3. Run eleventy --serve --incremental --quiet or slinkity --serve --incremental --quiet
  4. See error

Expected behavior

The website to build.

(please complete the following information):

  • OS: Arch
  • Browser: N/A
  • Node Version: v20.3.0

Additional context

Full error message:

@vitejs/plugin-react/dist/index.cjs:88
  let filter = vite.createFilter(opts.include, opts.exclude);
                    ^

TypeError: vite.createFilter is not a function
    at viteReact (demo-site/node_modules/@slinkity/react/node_modules/@vitejs/plugin-react/dist/index.cjs:88:21)
    at slinkityReact (demo-site/node_modules/@slinkity/react/index.cjs:12:17)
    at module.exports (demo-site/.eleventy.js:15:19)
    at toEleventyConfigDir2 (demo-site/node_modules/slinkity/lib/cli/index.js:1159:68)
    at Object.<anonymous> (demo-site/node_modules/slinkity/lib/cli/index.js:1455:21)
    at Module._compile (node:internal/modules/cjs/loader:1255:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1309:10)
    at Module.load (node:internal/modules/cjs/loader:1113:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)