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 property 'on' of undefined #1

Open
nayanchamp7 opened this issue Oct 21, 2020 · 0 comments
Open

Cannot read property 'on' of undefined #1

nayanchamp7 opened this issue Oct 21, 2020 · 0 comments

Comments

@nayanchamp7
Copy link

nayanchamp7 commented Oct 21, 2020

Awesome package. No doubt about it. First of all, Thanks to you a lot.

Here are my config lines...
const config = { babel: { presets: ['@babel/preset-env'] }, wp_textdomain: { src: [ '**/*', '!.git/**', '!node_modules/**', '!.browserslistrc', '!.eslintrc', '!.gitignore', '!gulpfile.js', '!package.json', '!package-lock.json', '!phpcs.xml' ], }, };

Gulp task making...

gulp.task('textdomain', function() { return gulp .src( config.wp_textdomain.src ) .pipe( wptextdomain( '**/*.php', { domain: 'woo-feed', //Specify allowed domain(s) fix: true, keywords: [ //List keyword specifications '__:1,2d', '_e:1,2d', '_x:1,2c,3d', 'esc_html__:1,2d', 'esc_html_e:1,2d', 'esc_html_x:1,2c,3d', 'esc_attr__:1,2d', 'esc_attr_e:1,2d', 'esc_attr_x:1,2c,3d', '_ex:1,2c,3d', '_n:1,2,4d', '_nx:1,2,4c,5d', '_n_noop:1,2,3d', '_nx_noop:1,2,3c,4d' ], })); });

The error shows like below...

image

please fix it out..

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