-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Error When Disabling on Local Environment #22
Comments
Couple of checks if you don't mind:
|
I have honey in composer.json as 0.3.1 |
I've just found that this error is in the console if used on a page that's making use of Vue? `app.js:331324 [Vue warn]: Error compiling template: Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <script>, as they will not be parsed.` Maybe my implementation is wrong? |
Are you using it in Vue itself? Or is Vue just on the page somewhere? |
It's in a blade file, that just has Vue on the page. |
I'm really struggling to replicate this, in tests or otherwise. Any chance of snippets of your code? |
The code is essentially this; Blade file
Web.php
Using Laravel 8.16I do have the recaptcha credentials in the env |
Just ran into this. Appears to be due to the Due to the |
Going to have another look over the holidays 👍 thanks for the confirmation |
I don't know if this is the real issue. I was getting the same error as @JamesCobbledick
Was getting these errors
But, when I removed the action attribute in x-honey-recaptcha tag, the error was no longer showing up. Laravel : v8.75.0 |
Expected
Disable the use of honey on the local environment by commenting out config.honey.environments.local
Successfully submit a form, even though it has 'honey' & 'honey-recaptcha' middleware on the server side and
<x-honey recaptcha="message"/>
on the front end.Actual Result
Error is thrown with the following: Typed property Lukeraymonddowning\Honey\Recaptcha::$response must not be accessed before initialization.
It then points to here: \vendor\lukeraymonddowning\honey\src\Recaptcha.php:60
The text was updated successfully, but these errors were encountered: