-
Notifications
You must be signed in to change notification settings - Fork 48
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
Could not resolve react in "@react-three/drei" using deno-loader #124
Comments
Hey! Try give a look at my comment on a similar issue: #127 (comment) |
This is a bug in |
@lucacasonato It is declared in the Here a reproduction example: import * as drei from "npm:@react-three/drei@9.114.0";
console.log(drei);
import * as esbuild from "npm:esbuild@0.20.2";
import { denoPlugins } from "jsr:@luca/esbuild-deno-loader@^0.10.3";
// this works
import * as dreiOnDeno from "npm:@react-three/drei@9.114.0";
console.log(!!dreiOnDeno);
// this doesn't
const result = await esbuild.build({
plugins: [...denoPlugins()],
entryPoints: ["./main_test.ts"],
outfile: "./dist/bytes.esm.js",
bundle: true,
format: "esm",
});
console.log(result.outputFiles);
esbuild.stop();
|
Description
I encountered an error while using the deno-loader plugin in my Deno project. The error message indicates that it could not resolve the "react" module only when using @react-three/drei. It's doing fine with @react-three/fiber.
Error Message
Steps to Reproduce
Expected Behavior
The deno-loader plugin should be able to resolve the "react" module and allow its usage in the Deno project.
Actual Behavior
The deno-loader plugin fails to resolve the "react" module, resulting in the aforementioned error.
Environment
Additional Information
Possible Cause
It seems that the deno-loader plugin is unable to resolve the "react" module correctly, possibly due to a configuration issue or a compatibility problem between the plugin and the "react" module.
I would appreciate any assistance or guidance in resolving this issue. Please let me know if you need any further information or clarification.
Thank you for your attention to this matter.
The text was updated successfully, but these errors were encountered: