You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting this error when following astro instructions:
$ astro dev<project>/node_modules/@whyframe/astro/src/index.js:2import { 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:127:21)at async ModuleJob.run (node:internal/modules/esm/module_job:193:5)at async Promise.all (index 0)at async ESMLoader.import (node:internal/modules/esm/loader:337:24)error Command failed with exit code 1.
using this astro.config.ts (also the same using .mjs):
Actually, nevermind. I was unable to create a minimal repro, when I realized that this is happening because I have vite 2 and vite 3 conflicting in my monorepo. Apologies!
Getting this error when following astro instructions:
using this
astro.config.ts
(also the same using.mjs
):with the following package versions:
I've tried using the default import and destructuring that, but I still get the same error.
The text was updated successfully, but these errors were encountered: