draw-a-ui icon indicating copy to clipboard operation
draw-a-ui copied to clipboard

CSS error?

Open 0xlarry opened this issue 1 year ago • 8 comments

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

I am getting this error though: image

0xlarry avatar Nov 08 '23 22:11 0xlarry

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

SawyerHood avatar Nov 08 '23 23:11 SawyerHood

I tried that, same error.

I am using [email protected] and [email protected]

0xlarry avatar Nov 09 '23 13:11 0xlarry

I tried that, same error.

I am using [email protected] and [email protected]

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 ?

0x-sen avatar Nov 11 '23 03:11 0x-sen

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. 😃

kawana77b avatar Nov 13 '23 11:11 kawana77b

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

0xlarry avatar Nov 13 '23 14:11 0xlarry

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.

kawana77b avatar Nov 13 '23 15:11 kawana77b

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.

ram33z avatar Nov 13 '23 17:11 ram33z

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.

steveruizok avatar Nov 13 '23 20:11 steveruizok