Giter Site home page Giter Site logo

lidojs / canva-clone Goto Github PK

View Code? Open in Web Editor NEW
179.0 6.0 88.0 4.09 MB

LidoJS is a design tool based on Reactjs. UX almost the same canva.

Home Page: https://demo.lidojs.com

TypeScript 95.16% HTML 4.84%
canva-clone design-editor react-canva-clone react-design-editor graphic-design image-design-editor canvas-editor canva-editor image-editor photo-editor

canva-clone's Issues

version conflict between dependencies (`vite` and `@vitejs/plugin-react)

Description

Encountering a dependency resolution error when trying to install project dependencies. The issue arises due to a version conflict between vite and @vitejs/plugin-react.

Error Message

npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: @lidojs/[email protected] npm ERR! Found: [email protected] npm ERR! node_modules/vite npm ERR! dev vite@“5.2.9” from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer vite@“^4.2.0” from @vitejs/[email protected] npm ERR! node_modules/@vitejs/plugin-react npm ERR! dev @vitejs/plugin-react@“~4.0.0” 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! See C:\Users\USER\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\USER\AppData\Local\npm-cache_logs\2024-04-17T08_28_56_284Z-debug-0.log

Steps to Reproduce

  1. Clone the repository from https://github.com/lidojs/canva-clone/
  2. Run npm install to install the dependencies.
  3. Encounter the ERESOLVE error due to version conflicts.

Environment

  • Node version: v18.4.0
  • npm version: 8.13.2
  • OS: Windows 10

Additional Context

Attempting to resolve the issue by updating vite to the latest version resulted in a new version conflict with @vitejs/plugin-react. The error persists despite trying to fix the upstream dependency conflict as suggested by npm.

Not running

Hi, is there any reason why this is not running locally? It's stuck on yarn start

Install

Cloned source code and tried and run but showing error and not running.

window is not defined in NextJS

First of all, I congratulate everyone who contributed. This is an amazing project. I managed to integrate to nextjs14. And figured out working with emotion in nextjs. Everything works fine, except i can not edit any of the text on the editor. I can edit on the data, and works fine but when I double click the text, it does nothing.
I assume that a prosemirror SSR issue because it says window is undefined. I tried:
add "use client" for every component,
use dynamic loading feature while loading <Test/> from next/dynamic for disabling SSR.

I guess you could update where you import and use prosemirror, and force the wait for window like:

const [isLoading, setIsLoading] = useState(true);
   useEffect(() => {
       console.log(window);
       if (typeof window !== "undefined") {
           setIsLoading(false);
       }
   }, []);

again, congrats on hard work. This is impressive work.

version conflict between dependencies (`vite` and `@vitejs/plugin-react)

Description

Encountering a dependency resolution error when trying to install project dependencies. The issue arises due to a version conflict between vite and @vitejs/plugin-react.

Error Message

npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: @lidojs/[email protected] npm ERR! Found: [email protected] npm ERR! node_modules/vite npm ERR! dev vite@“5.2.9” from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer vite@“^4.2.0” from @vitejs/[email protected] npm ERR! node_modules/@vitejs/plugin-react npm ERR! dev @vitejs/plugin-react@“~4.0.0” 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! See C:\Users\USER\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\USER\AppData\Local\npm-cache_logs\2024-04-17T08_28_56_284Z-debug-0.log

Steps to Reproduce

  1. Clone the repository from https://github.com/lidojs/canva-clone/
  2. Run npm install to install the dependencies.
  3. Encounter the ERESOLVE error due to version conflicts.

Environment

  • Node version: v18.4.0
  • npm version: 8.13.2
  • OS: Windows 10

Additional Context

Attempting to resolve the issue by updating vite to the latest version resulted in a new version conflict with @vitejs/plugin-react. The error persists despite trying to fix the upstream dependency conflict as suggested by npm.

Failed to resolve entry for package "@lidojs/design-editor".

Failed to resolve entry for package "@lidojs/design-editor". The package may have incorrect main/module/exports specified in its package.json
src/pages/EditorContent.tsx:1:28:
1 │ import { DesignFrame } from '@lidojs/design-editor';
didnot find the package

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.