Hi all! I'm creating a new theme based on 2020.2. ...
# suitecommerce
d
Hi all! I'm creating a new theme based on 2020.2. In the sandbox, I activated the base theme with no extensions, and successfully
gulp theme:fetch
. When I go to
gulp theme:deploy --to --create
with no modifications I'm met with the following error:
Copy code
[17:11:37] 'startDeploy' errored after 4.23 min
[17:11:37] TypeError: Cannot read property 'files' of undefined
k
have you tried w/out the --to?
d
yup! from what I understand
--to
just prompts for your email/role again.
k
were you prompt for your NS credentials or did the deploy error first?
d
I was able to authenticate and add the theme details via the prompts.
Copy code
deployData.forEach(deploy => {
                if (deploy === undefined) {
                    return
                }
                data.result.files = [...data.result.files, ...deploy.files];
            });
Well that worked, but sure feels like a hack 😕
in
gulp/extension-mechanism/deploy/deploy.js
👍 1
m
Without the
--create
option the same base theme should deploy perfectly.
d
Is there another or easier way to create a new theme?
m
On the first deploy it will prompt you for all the details and will create a new theme deployment.
d
got it - will try that. Thanks!
(that worked - steve, if you read this, update the docs on the linked page 🙂 )
m
Great! And if you change version no. in manifest.json and deploy, so it will be available as an update to that theme.