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

"The response is not a Splade response." on production enviroment #642

Open
Blixary opened this issue Jun 19, 2024 · 3 comments
Open

"The response is not a Splade response." on production enviroment #642

Blixary opened this issue Jun 19, 2024 · 3 comments

Comments

@Blixary
Copy link

Blixary commented Jun 19, 2024

  • Laravel Version: 10.47.0
  • PHP Version: #.#.#
  • Splade JS Version (npm): 1.4.16
  • Splade PHP Version (composer): 1.4.16
  • Dev environment (OS, Sail/Valet/etc): Ubuntu 22

You may use the built-in Artisan Command to show the installed versions of the packages:

php artisan splade:show-versions

Make sure both Splade packages (JS + PHP) are up-to-date and on the same version. For example, when using version 0.5.0 of the PHP package, you should use the same JavaScript package version.

Description:

When clicking on a Splade Link to a route that was created with Splade and also has the corresponding middleware, the error appears: "The response is not a Splade response. Did you use the Splade Middleware on this route?" - the link does not "open".

If you enter the relevant URL in the browser, the page works, but there are three zeros before the doctype in the HTML source code. It then looks something like this: https://imgur.com/l8Udu7P - Also, third party components like Filepond don't work correctly (wrong styling) on this page.

Locally, in development mode, this issue doesn't occure.

Steps To Reproduce Issue:

I can share a url link to a production enviroment where the issue is demontrated.

@jamesj2
Copy link
Contributor

jamesj2 commented Jun 20, 2024

I suggestion would be check your templates or try searching for "000" in your code.

@Blixary
Copy link
Author

Blixary commented Jun 22, 2024

I suggestion would be check your templates or try searching for "000" in your code.

As the zeros aren’t present on development environment, it may be not a template error.

@safeboot
Copy link

safeboot commented Sep 4, 2024

Please check to make sure that the route has the splade middleware.

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

3 participants