-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
bug: remix vitePlugin module not found while running remix as vite plugin #21820
Comments
@dsherret Do you have any clue on this? |
Intercepting what vite is doing it seems like the config file is transpiled to ESM: import { unstable_vitePlugin as remix } from "file:///Users/marvinh/dev/test/my-remix-app/node_modules/@remix-run/dev/dist/index.js";
import { defineConfig } from "file:///Users/marvinh/dev/test/my-remix-app/node_modules/vite/dist/node/index.js";
import tsconfigPaths from "file:///Users/marvinh/dev/test/my-remix-app/node_modules/vite-tsconfig-paths/dist/index.mjs";
var vite_config_default = defineConfig({
plugins: [remix(), tsconfigPaths()]
});
export {
vite_config_default as default
}; But because the first import is a Here is a minimal reproduction:
{
"type": "module",
"dependencies": {
"@remix-run/dev": "^2.4.1"
}
}
import * as remix from "@remix-run/dev";
console.log(remix);
This works perfectly fine in node. It looks like we're not checking if the file resides in a module directory and check |
this repro appear to work with deno 1.43.3:
Also the |
It works! Thanks! |
Version: Deno 1.39.2
I use the official unstable-vite template with Deno byonm mode as configured above. When executing
deno task dev
I saw below error:But, executing
vite.config.ts
directly is working viadeno run -A vite.config.ts
.The text was updated successfully, but these errors were encountered: