YoastSEO.js icon indicating copy to clipboard operation
YoastSEO.js copied to clipboard

Browserify Example Issue

Open damienmajer opened this issue 7 years ago • 3 comments

What did you expect to happen?

examples/browserified/example-browserified.js to be complied during grunt build

What happened instead?

Browserified js file isnt generated and the only output from grunt build is:

Running "copy:css" (copy) task

Running "sass:build" (sass) task

Running "postcss:build" (postcss) task No source files were found.

Running "shell:makepot" (shell) task

And, when manually trying to browserify examples/browserified/example.js, the following error is seen:

/myuser/yoastseo/node_modules/lodash-es/lodash.js:10 export { default as add } from './add.js'; ^ ParseError: 'import' and 'export' may appear only with 'sourceType: module'

How can we reproduce this behavior?

clone repo npm install npm install -g grunt-cli grunt build

damienmajer avatar Sep 23 '18 14:09 damienmajer

I am running into the same issue. Though now i can't seem to install the dev dependencies either.

criticalfault avatar Dec 15 '18 22:12 criticalfault

It seems the change to lodash-es has broken this, I'm having the same problem too

edparsons avatar Mar 15 '19 21:03 edparsons

Hi, do you have a new process in order to obtain examples/browserified/example-browserified.js. I have the same problem when i use the Browserify command..

aubryvannet avatar Nov 17 '20 17:11 aubryvannet