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

Support for Create React App for Jupyter-UI #250

Open
Prahmodh-Raj1 opened this issue Jun 23, 2024 · 3 comments
Open

Support for Create React App for Jupyter-UI #250

Prahmodh-Raj1 opened this issue Jun 23, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Prahmodh-Raj1
Copy link

Description

I'm encountering the following issues while trying to use Jupyter UI in my Create React Application

image

And while installing the dependencies,the following error throws up:

Command: npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: @datalayer/[email protected]        
npm ERR! Found: [email protected]
npm ERR! node_modules/vite
npm ERR!   dev vite@"^5.2.7" from @datalayer/[email protected]
npm ERR!   examples/lexical
npm ERR!     @datalayer/[email protected]
npm ERR!     node_modules/@datalayer/jupyter-lexical-example
npm ERR!       workspace examples\lexical from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vite@"^2" from [email protected]
npm ERR! node_modules/vite-plugin-replace
npm ERR!   dev vite-plugin-replace@"^0.1.1" from @datalayer/[email protected]        
npm ERR!   examples/lexical
npm ERR!     @datalayer/[email protected]
npm ERR!     node_modules/@datalayer/jupyter-lexical-example
npm ERR!       workspace examples\lexical from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! C:\Users\xyz\AppData\Local\npm-cache\_logs\2024-06-23T10_58_57_044Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: C:\Users\xyz\AppData\Local\npm-cache\_logs\2024-06-23T10_58_57_044Z-debug-0.log

Kindly let me know how these errors could be resolved. cc @echarles

@Prahmodh-Raj1 Prahmodh-Raj1 added the bug Something isn't working label Jun 23, 2024
@echarles
Copy link
Member

@datalayer/jupyter-lexical-example is not published in npm. If you want to depend on that, you would have to copy the source code in your src tree.

@Prahmodh-Raj1
Copy link
Author

Is there any other way in which I could use Jupyter UI in a normal Create React App? @echarles
Could you provide the list of dependencies to be installed and the Sample code for making Jupyter Components work in a JS/TS file in a Create React App.

@echarles
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants