draw-a-ui
draw-a-ui copied to clipboard
CSS error?
Hey, really excited to try this out. Looks powerful from the gif!!
I am getting this error though:
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
I tried that, same error.
I am using [email protected] and [email protected]
the same error
while use yarn (version: 1.22.19)
while use npm (version: 9.8.1)
maybe you use yarn to install ?
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. 😃
still does not work, still getting the same error even after your suggestion :/.... I am not sure what to do here
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.
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.
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.