Closed RickeyWard closed 4 months ago
Looks like it's happening since Deno is using strict hoisting installation in node_modules
. Pretty sure it works with pnpm though, so I'm not sure why Deno is having this issue. Babel should try to resolve the plugins from @preact/preset-vite
first, then fallback to resolving from /my-project/babel-virtual-resolve-base.js
.
As a workaround, you can install the dep with:
// vite.config.mjs
import "npm:@babel/plugin-transform-react-jsx-development@^7.22.5"
import "npm:@babel/plugin-transform-react-jsx@^7.22.5"
Maybe this is somewhat related to https://github.com/denoland/deno/issues/19418. cc @bartlomieju
@dsherret could you take a look when you get a moment?
Just creating a new Preact Vite project results in a page that won't load.
In case its relevant, my OS is Windows 11, using windows terminal on powershell core 7 profile.
steps I followed
I get the vite error screen with a blank white page behind it, error shows as: