understrap / understrap-child

The starter child theme for Understrap, the renowned open-source WordPress starter theme.
GNU General Public License v3.0
582 stars 332 forks source link

feature/bs5-development / Uncaught ReferenceError: process is not defined createPopper.js:81 #313

Closed Piirka closed 3 years ago

Piirka commented 3 years ago

Hi,

I get error below in the console when I am clicking simple dropdown button. Dropdowns in narbar are working fine.

Uncaught ReferenceError: process is not defined createPopper.js:81

On the line 81 is following code.

if (process.env.NODE_ENV !== "production") {

How to handle those variables? I have Windows 10 enviroment.

bacoords commented 3 years ago

Thanks - this appears to be an issue in the upcoming BS5 release for parent and child theme. I'll post back here once it's fixed 👍

bacoords commented 3 years ago

Please pull the changes (you'll need to re-run npm install and then npm run js) and let me know if it's working.

Piirka commented 3 years ago

Dropdowns are back to live. Thanks for this fix. 👍