I am unfortunately hitting a snag early in this training Theming – Volto Hands-On — Plone Training 2024 documentation. This says " tart by creating a directory called theme
in your addons src
directory. In there create the directories globals
and extras
. Next copy the theme.config
file from the root projetcs /theme
folder to your newly created one". I gave my addon the clever name vaddon
so I have `myproject/frontend/src/addons/vaddon/src/theme".
The next step tells me "Create a file called site.variables in the following path src/addons//theme/globals/". Shouldn't this be src/addons//src/theme/globals? Similarly it says to set @siteFolder to <your-addon-name>/theme
instead of <your-addon-name>/src/theme
. I tried both.
This is the result of including src/ and setting @fontName
ERROR in ./node_modules/@plone/volto/theme/themes/pastanaga/extras/extras.less (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/@plone/volto/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./node_modules/@plone/volto/theme/themes/pastanaga/extras/extras.less)
Module build failed (from ./node_modules/css-loader/dist/cjs.js):
Error: Can't resolve '../../pastanaga/assets/fonts/Assistant/Assistant-RegularItalic-devanagari.woff2' in '/Users/[redacted]/PycharmProjects/volto/project-title/frontend/node_modules/@plone/volto/theme/themes/pastanaga/extras'
at finishWithoutResolve (/Users/[redacted]/PycharmProjects/volto/project-title/frontend/node_modules/enhanced-resolve/lib/Resolver.js:309:18)
at /Users/[redacted]/PycharmProjects/volto/project-title/frontend/node_modules/enhanced-resolve/lib/Resolver.js:386:15
at /Users/[redacted]/PycharmProjects/volto/project-title/frontend/node_modules/enhanced-resolve/lib/Resolver.js:435:5
at eval (eval at create (/Users/[redacted]/PycharmProjects/volto/project-title/frontend/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:16:1)
at /Users/[redacted]/PycharmProjects/volto/project-title/frontend/node_modules/enhanced-resolve/lib/Resolver.js:435:5
at eval (eval at create (/Users/[redacted]/PycharmProjects/volto/project-title/frontend/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:27:1)
at /Users/[redacted]/PycharmProjects/volto/project-title/frontend/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:87:43
at /Users/[redacted]/PycharmProjects/volto/project-title/frontend/node_modules/enhanced-resolve/lib/Resolver.js:435:5
at eval (eval at create (/Users/[redacted]/PycharmProjects/volto/project-title/frontend/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
at /Users/[redacted]/PycharmProjects/volto/project-title/frontend/node_modules/enhanced-resolve/lib/Resolver.js:435:5
at eval (eval at create (/Users/[redacted]/PycharmProjects/volto/project-title/frontend/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:16:1)
at /Users/[redacted]/PycharmProjects/volto/project-title/frontend/node_modules/enhanced-resolve/lib/Resolver.js:435:5
at eval (eval at create (/Users/[redacted]/PycharmProjects/volto/project-title/frontend/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:16:1)
at /Users/[redacted]/PycharmProjects/volto/project-title/frontend/node_modules/enhanced-resolve/lib/Resolver.js:435:5
at eval (eval at create (/Users/[redacted]/PycharmProjects/volto/project-title/frontend/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:27:1)
at /Users/[redacted]/PycharmProjects/volto/project-title/frontend/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:87:43
@ ./node_modules/@plone/volto/theme/themes/pastanaga/extras/extras.less 8:6-281 22:17-24 26:7-21 58:25-39 59:36-47 59:50-64 63:6-73:7 64:54-65 64:68-82 70:42-53 70:56-70 72:21-28 83:0-251 83:0-251 84:22-29 84:33-47 84:50-64 61:4-74:5
@ ./src/theme.js 5:0-67
@ ./node_modules/@plone/volto/src/start-client.jsx 4:0-21
@ ./src/client.js 4:0-47 5:0-6
webpack 5.76.1 compiled with 1 error in 11408 ms
There are a lot of different "roots" (project root, frontend root, addon root) and different directories named "src" and I'm struggling to get my initial footing here as I wade in.