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

Cannot read properties of undefined (reading 'default') #6

Closed
krunaldodiya opened this issue Dec 1, 2023 · 1 comment
Closed

Cannot read properties of undefined (reading 'default') #6

krunaldodiya opened this issue Dec 1, 2023 · 1 comment

Comments

@krunaldodiya
Copy link

krunaldodiya commented Dec 1, 2023

Describe the bug

createInertiaApp.ts:34 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'default')
    at createInertiaApp.ts:34:93
    at async j2 (createInertiaApp.ts:38:18)

To Reproduce
Steps to reproduce the behavior:

  1. git clone [email protected]:krunaldodiya/django-breeze-demo.git
  2. npm install
  3. python manage.py runserver

Expected behavior
It should show hompage without any warnings

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Pop OS / linux
  • google chrome

Additional context
Add any other context about the problem here.
Screenshot from 2023-12-01 15-09-35

@krunaldodiya
Copy link
Author

Sorry, Found out the issue is with naming case sensitivity instead of index, i wrote Index

from inertia import render


# Create your views here.
def home(request):
    return render(request, "index")

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

1 participant