'@woocommerce/navigation package process in not defined. Woocommerce

in this path node_modules/@woocommerce/navigation/node_modules/@wordpress/compose/build-module/hooks/use-media-query/index.js this file has

var useReducedMotion = process.env.FORCE_REDUCED_MOTION || IS_IE ? function () {
  return true;
} : function () {
  return (0,_use_media_query__WEBPACK_IMPORTED_MODULE_0__.default)('(prefers-reduced-motion: reduce)');
};

where process is undefined. Help to fix this. I want to use this package.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source