SawyerHood / draw-a-ui

Draw a mockup and generate html for it
https://draw-a-ui.com
MIT License
13.18k stars 1.58k forks source link

CSS error? #3

Open 0xlarry opened 10 months ago

0xlarry commented 10 months ago

Hey, really excited to try this out. Looks powerful from the gif!!

I am getting this error though: image

SawyerHood commented 10 months ago

What package manager are you using?

Could you delete node_modules, run npm ci, and then npm run dev?

I just run this on a clean machine and it worked

0xlarry commented 10 months ago

I tried that, same error.

I am using npm@10.1.0 and node@20.9.0

0x-sen commented 10 months ago

I tried that, same error.

I am using npm@10.1.0 and node@20.9.0

the same error

while use yarn (version: 1.22.19)

image

while use npm (version: 9.8.1)

image

maybe you use yarn to install ?

kawana77b commented 10 months ago

There seems to be a code difference between the alpha version and the canary version (at least the old) in the @tldraw/tldraw release. It is possible that the installed package version has been swapped to canary. Checking the package.json and node_modules may help. For example, if I followed the procedure pnpm install followed by pnpm update, I confirmed that 2.0.0-canary.ffda4cfb is installed and this event occurs.

One way is to remove all node_modules, clean the source, and then run npm install. I have had no problems with pnpm too. In this case it works fine for me.

Hope this helps in resolving this. 😃

0xlarry commented 9 months ago

still does not work, still getting the same error even after your suggestion :/.... I am not sure what to do here

kawana77b commented 9 months ago

That's odd because the Docker container for your Node version and npm version works in my environment. :worried:

Does node_modules/@tldraw/tldraw/tldraw.css exist in your execution workspace? Is the version of node_modules/@tldraw/tldraw/package.json 2.0.0-alpha.17?

It is not certain, but npm cache verify may solve the problem.

ram33z commented 9 months ago

Removed ^ from "@tldraw/tldraw": "2.0.0-alpha.17" to use an absolute version so that it doesn't uses canary release..worked for me.

steveruizok commented 9 months ago

Hey, tldraw author here. We'll check on whether the canary has a problem with its CSS exports. The alpha should work here though for sure.