Run Build Not Working in Flynt 2.0.1 #527
-
When I run NPM run build - no files are added the dist folder - it remains empty. When I run NPM run start - dist folder shows a subfolder named "hot" - in the folder is the domain as https://localhost:5173. I am using Local for WordPress on my desktop. The stylesheet files in the WordPress header show up like this:
When you click on the main.scss file it shows the files that should be compiled:
The vite.config file seems to have the proper entries to build the "dist" folder and files. The issue is that I am not able to deploy the website using wp-vivid. I never had this issue in Flynt 1.0. Any debugging help would be appreciated. Regards, Dave |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 13 replies
-
I created a second website using Flynt 2.01. It has the same issues:
Thanks in advance for any assistance. Regards, Dave |
Beta Was this translation helpful? Give feedback.
-
Hey @purchasingtoolpak, do you use Windows, macOS or Linux? We have some other open issues in relation to Windows and I planned in to dive deeper into them today. |
Beta Was this translation helpful? Give feedback.
-
I found some time and installed Local and Node.js on a fresh machine running Windows 11. After that I opened the command prompt (CMD), navigated to the theme folder and did the install. Then I ran npm start (inside the theme folder). At first it didn't work because Node.js was running in production and devDependencies were not installed during the initial installation. After setting Node.js to development by running
The next step was to test
The hot file is a placeholder and needed for HMR. When it exists styles and scripts are loaded in a different way and they don’t get the domain from the const
Unfortunately I have no experience with wp-vivid and I don’t understand what exactly does not work with wp-vivid here and if this is related to flynt itself? |
Beta Was this translation helpful? Give feedback.
-
Thanks for that tip - run build:production - all the files are generated in the dist. folder. However, as soon as I run "npm run start" - the folder is emptied and only shows the "hot" folder. I tried to deploy the site and had issues with the stylesheet header. I am going to try again on Monday. |
Beta Was this translation helpful? Give feedback.
I upgraded to 2.1 and am having no issues with run build using Windows 11.