tldraw / make-real-starter

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

meet the error when install #28

Open CuteSmartTiger opened 6 months ago

CuteSmartTiger commented 6 months ago

Failed to compile ./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 This error occurred during the build process and can only be dismissed by fixing the error.

praveenc1 commented 6 months ago

Same issue here. Just running npm run dev and opening the main page shows this error. Stuck on this.

praveenc1 commented 6 months ago

For those of you with this issue, I submitted a fix at the pull request mentioned below. Hopefully the original author will see this and merge.

https://github.com/tldraw/make-real-starter/pull/29

dahal4 commented 5 months ago

hello there , i have also faced the same issue and resolved by following your steps , but got another issue image

ubergeekseven commented 5 months ago

hello there , i have also faced the same issue and resolved by following your steps , but got another issue image

  • i have already added the api key in the .env.local file as instructed in the README but unable to remove that risky but cool box

I am not sure if this is the proper method but within app/page.tsx, i deleted the reference to the risky but cool field and ran again. That worked for me.

soundquiet commented 5 months ago

I fixed it by having the prefix "NEXTPUBLIC" for the variable, e.g., "NEXT_PUBLIC_OPENAI_API_KEY". learned from here