elegantthemes / create-divi-extension

MIT License
187 stars 59 forks source link

divi-scripts tried to access postcss, but it isn't declared in its dependencies #402

Open solybarr opened 4 years ago

solybarr commented 4 years ago

Problem Description

Get an error message => Error: divi-scripts tried to access postcss, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.

I tried adding postcss as a dependency in divi-scripts/package.json but its not making any difference. Thanks for any help. This module has no problems when using "yarn start".

Steps To Reproduce

  1. go into module folder
  2. run yarn zip

Error message

helios@Sols-iMac new-module % yarn zip /Users/helios/Local Sites/opening-times/app/public/wp-content/plugins/new-module/.pnp.js:28604 throw firstError; ^

Error: divi-scripts tried to access postcss, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.

Required package: postcss (via "postcss") Required by: divi-scripts@npm:1.0.2-rc.0 (via /Users/helios/Local Sites/opening-times/app/public/wp-content/plugins/new-module/.yarn/cache/divi-scripts-npm-1.0.2-rc.0-c3cbab4ed2-8254bd17c1.zip/node_modules/divi-scripts/scripts/)

Require stack:

Screenshot and/or gif

lanresmith commented 3 years ago

Hi @solybarr can you please confirm if you're using the latest version of CDE? I'm unable to reproduce this error with the latest version & postcss is declared as a dependency for divi-scripts.