You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Step1: Install page folder latest next.js 14.2.3 with default typescript.
Step2: Install latest tldraw 2.1.4, npm install tldraw
Step3: Follow https://tldraw.dev/examples/use-cases/pdf-editor create same folders and files.
Step4: Some missing exported function showed up.
Step5: Example couldn't work.
ExportPdfButton.tsx: import { Editor, assert, exportToBlob, useEditor } from 'tldraw'
Module '"tldraw"' has no exported member 'assert'.ts(2305)
PdfPicker.tsx: import { AssetRecordType, Box, TLAssetId, TLShapeId, assertExists, createShapeId } from 'tldraw'
Module '"tldraw"' has no exported member 'assertExists'.ts(2305)
Thanks for the report! This was fixed in #3746 and the docs site will update to reflect those changes in our next sdk release which is planned for next week. I'll leave this open until that happens.
What happened?
Step1: Install page folder latest next.js 14.2.3 with default typescript.
Step2: Install latest tldraw 2.1.4, npm install tldraw
Step3: Follow https://tldraw.dev/examples/use-cases/pdf-editor create same folders and files.
Step4: Some missing exported function showed up.
Step5: Example couldn't work.
ExportPdfButton.tsx:
import { Editor, assert, exportToBlob, useEditor } from 'tldraw'
Module '"tldraw"' has no exported member 'assert'.ts(2305)
PdfPicker.tsx:
import { AssetRecordType, Box, TLAssetId, TLShapeId, assertExists, createShapeId } from 'tldraw'
Module '"tldraw"' has no exported member 'assertExists'.ts(2305)
PdfEditor.tsx:
import { Box, DEFAULT_CAMERA_OPTIONS, SVGContainer, TLComponents, TLImageShape, TLShapePartial, Tldraw, compact, getIndicesBetween, react, sortByIndex, track, useEditor, } from "tldraw";
Module '"tldraw"' has no exported member 'DEFAULT_CAMERA_OPTIONS'.ts(2305)
Module '"tldraw"' has no exported member 'compact'.ts(2305)
How can we reproduce the bug?
Step1: Install page folder latest next.js 14.2.3 with default typescript.
Step2: Install latest tldraw 2.1.4, npm install tldraw
Step3: Follow https://tldraw.dev/examples/use-cases/pdf-editor create same folders and files.
Step4: Some missing exported function showed up.
Step5: Example couldn't work.
What browsers are you seeing the problem on?
Firefox, Chrome, Safari
Contact Details
[email protected]
Code of Conduct
The text was updated successfully, but these errors were encountered: