I got this error when following the install steps:
C:\Users\antdx\make-real-starter>npm run dev
[email protected] dev next dev
▲ Next.js 14.0.3
- Local: http://localhost:3000
- Environments: .env.local
✓ Ready in 2.1s ○ Compiling / ... ⨯ ./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 ⨯ ./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
Hey @AntDX316 - fixed this with PR (https://github.com/tldraw/make-real-starter/pull/26)
Just wait for the tldraw team to merge
I encountered the same error.
How to incorporate the change?
Hello everyone, I am still seeing this error. Do we have an update on this?
Hello everyone, I am still seeing this error. Do we have an update on this?
Got the fix here #29