Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meet the error when install #28

Open
CuteSmartTiger opened this issue Apr 22, 2024 · 5 comments
Open

meet the error when install #28

CuteSmartTiger opened this issue Apr 22, 2024 · 5 comments

Comments

@CuteSmartTiger
Copy link

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
Copy link

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

@praveenc1
Copy link

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.

#29

@dahal4
Copy link

dahal4 commented May 22, 2024

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

@ubergeekseven
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants