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

Editor not showing, error in console: forwardRef render functions accept exactly two parameters: props and ref #564

Open
cowchin12 opened this issue Jul 19, 2023 · 3 comments

Comments

@cowchin12
Copy link

cowchin12 commented Jul 19, 2023

I've tried creating fresh vite and webpack projects and then following the installation instructions here, but the editor does not appear to be working. I get this error in the console: "forwardRef render functions accept exactly two parameters: props and ref". I am using version 6.8.2 but have tried 6.6.5, 6.7.0, and 6.8.0 as well.

Reproduce:
Create a fresh vite or webpack project, I used: https://www.npmjs.com/package/create-vite with the React/typescript options
Follow the installation instructions on this Github project and add the example code to your App.tsx/js

@russellr922
Copy link

russellr922 commented Jul 26, 2023

Same issue here.

Update: Got it working with CRA, not sure what is going on here.

@aexol
Copy link
Contributor

aexol commented Aug 4, 2023

Idk if it works without webpack as much work is done in workers , some of them might be incompatible with Vite making it a no go for vite

@ut3hnc
Copy link

ut3hnc commented Mar 22, 2024

Hi All,

Is there any way to run graphql-editor with vite+react... I am receiving issues with both vite, vitest commands.

with vite command

GET http://localhost:5173/@fs/****/node_modules/.vite/deps/validation.worker.js?type=classic&worker_file 504 (Outdated Optimize Dep)

with vitest command

Module <project_path>/node_modules/graphql-editor-worker/lib/index.js:1 seems to be an ES Module but shipped in a CommonJS package. You might want to create an issue to the package "graphql-editor-worker" as
king them to ship the file in .mjs extension or add "type": "module" in their package.json.

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

4 participants