Yoast / YoastSEO.js

Analyze content on a page and give SEO feedback as well as render a snippet preview.
GNU General Public License v3.0
403 stars 172 forks source link

Browserify Example Issue #1817

Open damienmajer opened 5 years ago

damienmajer commented 5 years ago

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

criticalfault commented 5 years ago

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

edparsons commented 5 years ago

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

aubryvannet commented 3 years ago

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..