When setting up a new Hyvä project, you may see the error npm error Missing script: “build-prod” in the CLI while running the npm build command. The cause is that newer Hyvä versions replaced the old build-prod script. Hyvä 1.1.x…
Fixing Hyvä npm could not determine executable to run (Magento 2)
While working with your Hyvä theme and running npm run build-prod, you may see the following error: npm ERR! could not determine executable to run To fix it, change to your Hyvä child theme’s Tailwind directory (for example, app/design/frontend/Vendor/Your_Child_Theme/web/tailwind/) and…
Fixing Hyvä Cannot find module ‘postcss-import’ (Magento 2)
You might encounter the following error when running the Hyvä npm build command: Cannot find module ‘postcss-import’ You can fix it by running this command in your child theme’s Tailwind directory:
|
1 |
npm install postcss-import |
Fixing Cannot find module ‘@hyva-themes/hyva-modules’ (Magento 2)
When you start working with Hyvä, you may receive the following error when running npm run watch or npm run build-prod in the Tailwind directory of your Hyvä child theme: Cannot find module ‘@hyva-themes/hyva-modules’ Run the following command in that…