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

SyntaxError: Named export 'createFilter' not found. #10

Open
usmaniqbal998 opened this issue May 30, 2023 · 0 comments
Open

SyntaxError: Named export 'createFilter' not found. #10

usmaniqbal998 opened this issue May 30, 2023 · 0 comments

Comments

@usmaniqbal998
Copy link

I cloned the project and installed node modules with yarn install and also setup db as indicated in setup md file but when i run yarn start i get strange error related to svelte kit and vite

muhammadusman in git on branch -> main > yarn start


> [email protected] dev
> svelte-kit dev

file:///Volumes/Work%20Space/cypresspratice/.yarn/__virtual__/@sveltejs-vite-plugin-svelte-virtual-84871d7e09/0/cache/@sveltejs-vite-plugin-svelte-npm-1.4.0-5b718c940b-a5bb66fbf3.zip/node_modules/@sveltejs/vite-plugin-svelte/dist/index.js:630
import { createFilter } from "vite";
         ^^^^^^^^^^^^
SyntaxError: Named export 'createFilter' not found. The requested module 'vite' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:

import pkg from 'vite';
const { createFilter } = pkg;

    at ModuleJob._instantiate (node:internal/modules/esm/module_job:128:21)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async ModuleJob.run (node:internal/modules/esm/module_job:194:5)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:409:24)
    at async file:///Volumes/Work%20Space/cypresspratice/.yarn/__virtual__/@sveltejs-kit-virtual-ff9266991c/0/cache/@sveltejs-kit-npm-1.0.0-next.202-5e134529f8-d5dc997e20.zip/node_modules/@sveltejs/kit/dist/cli.js:838:19

Node.js v18.0.0

arifzeeshan added a commit to arifzeeshan/cypress that referenced this issue Feb 20, 2024
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