laravel / nova-issues

554 stars 34 forks source link

Login page not working after deployment #6465

Closed AbdelkaderBah closed 2 months ago

AbdelkaderBah commented 2 months ago

Description:

Nova is working locally without any issues, once I have deployed it to forge, I am getting a blank page, with the following console issue (the only one).

app.js?id=4f1ec3789b86ed89a9a1900e986b95e6:1 Uncaught TypeError: Cannot read properties of undefined (reading 'use')
    at br.registerStoreModules (app.js?id=4f1ec3789b86ed89a9a1900e986b95e6:1:74154)
    at br.liftOff (app.js?id=4f1ec3789b86ed89a9a1900e986b95e6:1:71871)
    at <anonymous>:2:14
    at t.activateScript (rocket-loader.min.js:1:11855)
    at rocket-loader.min.js:1:11052
    at t.run (rocket-loader.min.js:1:11259)
    at P (rocket-loader.min.js:1:3128)
    at Object.callback (rocket-loader.min.js:1:2851)
    at t.run (rocket-loader.min.js:1:11340)
    at rocket-loader.min.js:1:11156

image

Detailed steps to reproduce the issue on a fresh Nova installation:

Deploy Nova to forge.

AbdelkaderBah commented 2 months ago

Refering to the previous issues, it was caused by Cloudflare Rocket loader.

Solution:

  1. Create a new Page rule
  2. set the URL you want e.g: somewhere.example.com/*
  3. Choose Rocket league (don't turn it on)
  4. Save