tldraw / make-real-starter

Make it real
GNU Affero General Public License v3.0
1.44k stars 240 forks source link

I got this error when following the install steps: #25

Open AntDX316 opened 5 months ago

AntDX316 commented 5 months ago

C:\Users\antdx\make-real-starter>npm run dev

make-real-template@0.1.0 dev next dev

▲ Next.js 14.0.3

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module: ./app/page.tsx ⨯ ./app/components/MakeRealButton.tsx:3:0 Module not found: Can't resolve '../makeReal' 1 | import { useEditor, useToasts } from '@tldraw/tldraw' 2 | import { useCallback } from 'react'

3 | import { makeReal } from '../makeReal' 4 | 5 | export function MakeRealButton() { 6 | const editor = useEditor()

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module: ./app/page.tsx ⨯ ./app/components/MakeRealButton.tsx:3:0 Module not found: Can't resolve '../makeReal' 1 | import { useEditor, useToasts } from '@tldraw/tldraw' 2 | import { useCallback } from 'react'

3 | import { makeReal } from '../makeReal' 4 | 5 | export function MakeRealButton() { 6 | const editor = useEditor()

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module: ./app/page.tsx

leowilkin commented 5 months ago

Hey @AntDX316 - fixed this with PR (https://github.com/tldraw/make-real-starter/pull/26)

Just wait for the tldraw team to merge

meefen commented 5 months ago

I encountered the same error.

How to incorporate the change?