Comments (8)
Thanks @JanGalek. It's great, we start using live-form-validation-es6
so you don't have to provide plugin in webpack config. And it works.
from recaptcha.
Hi. Unfortunately I don't know. Maybe others.
from recaptcha.
Hi, I'll look at it this week ;)
from recaptcha.
Hello, any news on this issue? I'm getting the same error.
Same Nette and ReCaptcha version, PHP 7.1
from recaptcha.
I investigated, Have you added https://nette.github.io/resources/js/3/netteForms.min.js too ?
ping @martinjinda @spulakk
from recaptcha.
Problem is that it create anonym function so invisibleRecaptcha dont know about this var. I tried add
window.Nette = require('live-form-validation');
window.Nette.initOnLoad();
into invisibleRecaptcha.js and it works.
from recaptcha.
I tried adding the snippet at the start of invisibleRecaptcha.js and it didn't change anything for me. Also I was fairly time constrained so I went with my own implementation of ReCaptcha already. Thanks for trying though, hopefully it helps @martinjinda at least.
from recaptcha.
@spulakk ok :)
Problem solved with configuration webpack
ebpack.config.js:
const path = require('path');
const webpack = require('webpack');
module.exports = {
entry: './src/index.js',
output: {
filename: 'main.js',
path: path.resolve(__dirname, 'www'),
},
plugins: [
new webpack.ProvidePlugin({
Nette: 'live-form-validation'
}),
],
};
of course remove require of live-form-validation
my index.js
Nette.initOnLoad();
import './invisibleRecaptcha'
documentation: https://webpack.js.org/guides/shimming/#shimming-globals
from recaptcha.
Related Issues (20)
- PHP 7.1 HOT 1
- Vulnerable to automated attacks when error message not set HOT 1
- More than one invisible recaptcha on page HOT 2
- Configurable proxy HOT 2
- contributte reCAPTCHA nelze nainstalovat HOT 5
- Contributte style docs folder HOT 1
- Problém s validací HOT 7
- Invisible ReCaptcha sometimes gets displayed HOT 4
- No way to set score threshold for invisible reCAPTCHA HOT 4
- PHP 8 compatibility HOT 1
- Compatibility with newest nette/utils HOT 1
- ReCaptchaField: Fatal Error: Allowed memory size of 134217728 bytes exhausted
- Composer nechce nainstalovat contributte/recaptcha HOT 2
- Nette\Forms\Container::getValues() invoked but the form is not valid HOT 2
- Displaying error in invisible version
- Support reCAPTCHA v3 Actions HOT 2
- invisible ReCaptcha in ajax form HOT 2
- Errors in the HTML validation of the component
- Undefined array key "score" HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recaptcha.