-
Hey! Our website is running fine, but I really liked the restructure of the 1.3 update so that things like Hugo can be updated more easily. However, I can't seem to get the 1.3 update working. I made quite a few changes to the default doks template (which is likely the culprit), but I did follow the best practices. So only changes were made to custom scss/js and several partials were added or overwritten in the layouts/ folder. After following the 1.3 update guide, I first get the following errors when trying to run "npm run dev" Error: error building site: TOCSS: failed to transform "scss/app.scss" (text/x-scss): "/Users/niels/webdevelopment/fablab/fablab-website/node_modules/@hyas/core/assets/scss/app.scss:8:1": File to import not found or unreadable: common/variables. I tried to debug this, so after deleting this file, it gives the same error for /doks-core and the local /app.scss. I deleted all these files to try and at least get everything to run but then I get this error:
I hope that both are related and that it is a simple fix, but I'm running out of ideas. Any tips / guidance would be really appreciated. (the branch 'update' features the 1.3 update changes according to the manual and nothing more). So when you clone this and try to run 'npm run dev' yo will first get the scss errors. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Your The critical part: // 2. Include any default variable overrides here
@import "common/colors";
// @import "common/variables";
// @import "common/variables-dark";
@import "common/variables-overrides";
@import "common/variables-custom"; Next to that some order differences in sections 5 and 6. These changes worked for me:
|
Beta Was this translation helpful? Give feedback.
Your
assets/scss/app.scss
override is not in line with the new@hyas/doks-core
v1.3.0 app.scss — I will make a note in the docs!The critical part:
Next to that some order differences in sections 5 and 6.
These changes worked for me:
app.scss