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

error :./tldraw.css is not exported from package @tldraw/tldraw #33

Closed xurenlu closed 9 months ago

xurenlu commented 9 months ago

https://nextjs.org/docs/messages/module-not-found ⨯ ./app/page.tsx:4:0 Module not found: Package path ./tldraw.css is not exported from package /Users/xurenlu/Sites/draw-a-ui/node_modules/@tldraw/tldraw (see exports field in /Users/xurenlu/Sites/draw-a-ui/node_modules/@tldraw/tldraw/package.json) 2 | 3 | import dynamic from "next/dynamic";

4 | import "@tldraw/tldraw/tldraw.css"; 5 | import { useEditor } from "@tldraw/tldraw"; 6 | import { getSvgAsImage } from "@/lib/getSvgAsImage"; 7 | import { blobToBase64 } from "@/lib/blobToBase64";

skcary commented 9 months ago

@xurenlu "@tldraw/tldraw": "2.0.0-alpha.17",

0x-sen commented 9 months ago

the same with #3

Lol4ikS commented 9 months ago

1

AndySSSSSS commented 9 months ago

find this "@tldraw/tldraw": "^2.0.0-alpha.17" in package.json delete the ^ npm install bingo

SawyerHood commented 9 months ago

Fixed here https://github.com/SawyerHood/draw-a-ui/commit/36384b82f7bad0aaa003877fa28571cabfeef6bb