TypeError: vite.createFilter is not a function
petar-v opened this issue · comments
Petar Vasilev commented
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:
- Follow the "Quick start guide"
- Follow the steps under "Add to your existing 11ty project"
- Run
eleventy --serve --incremental --quiet
orslinkity --serve --incremental --quiet
- 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)