Open AntDX316 opened 7 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
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'
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?
C:\Users\antdx\make-real-starter>npm run dev
▲ Next.js 14.0.3
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'
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'
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'
https://nextjs.org/docs/messages/module-not-found
Import trace for requested module: ./app/page.tsx