For the past couple years on a 19.1 site I have on...
# suitecommerce
m
For the past couple years on a 19.1 site I have only written SCA customizations in Extensions, as in, using the Extension Manager, or the theme. My gulp commands have been something like
gulp extension:_task_
or
gulp theme:_task_
. Now, on a 22.2 site, I need to move some of the customizations (extension prototypes) over, or write new ones in, an extensions folder in my SC_22.2 folder. Basically following the structure and instructions for my version of SCA found here: https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_4184021456.html So I will also be modifying the distro.json file. I remember developing more like this when I worked on an Elbrus site. Anyway, that link mentions gulp commands like
gulp local
or
gulp deploy
, obviously without specifying extension or theme in the command since that’s not how this is. My question is: Where do I get those developer tools? Or are there instructions I am missing somewhere to modify the Theme or Extension tools for this? I saw one SuiteAnswer where it read as if those tools would be included in the SCA bundle, but I am not finding them there either. If I search for developer tools in SuiteBundles of NS, I only see extension and theme tools. I had an older directory on my machine where I once modified our 19.1 distro.json file and in that directory,
gulp local
works. But when I move those gulp/npm files over, it is looking for the distro.json file to be at the same directory level as the gulp folder, but in 22.2, the disto file lives in the Advanced/ folder. I am guessing this might just be modifying some gulp files, but I wanted to ask in case there’s a download I am not aware of or a specific SuiteAnswer I haven’t found that explains the gulp changes to make. Thanks in advance for any help on this, and thanks for reading my novel. 😝
m
Yeah, i’d seen that link but wasn’t able to run gulp from those set of tools
s
Did you run it from the correct sub-directory?
Note: You must run all commands in the SCA directory where the package.json file is located.
m
Yes
s
What error did you get?
m
it’s usually errors pertaining to handlbars or jest
s
Were you running the correct version of Node?
m
for handlebars it can’t find the module. The error is thrown in the index.js of the package-manager folder. I’m currently running the npm install with 12.21.0 I get the same error when I rm the node_modules and try with different versions
s
OK, then I don’t know. Sounds like you need to talk to support
m
ok, thanks
s
(Or, you can ask on our official community forum: https://community.oracle.com/netsuite/english/categories/web-site-e-commerce)
m
ok, thanks. I just submitted the support case after trying a few more things re: the handlebars version in the package and package-lock json files. It seems like i’ve seen this handlebars error before but it’s been too long to remember what fixed it. I’ll prob ask in that forum as well. thanks again 🙂
d
@Melissa I'm facing a similar issue 🙂 I see "Module not found" when I run gulp ? did yours get fixed ? Thanks in advance
m
No, I haven't fixed this yet. I did get sidetracked on some other tasks and didn't work on it, but it's still not working. I changed the way the versioning for handlebars is set in the package and package-lock files and it still doesn't work. I think that (handlebars version) is how I fixed this a long time ago. I opened a support case and they don't know so far. I posted yesterday afternoon in that NS forum. @Durgasree
d
@Melissa please do let me know if you find anything
m
I definitely will!
@Durgasree mine is now working, and i have no explanation. I downloaded the dev tools again. It came into my downloads folder as like #4 so it’s exactly what I had been doing. Re-did the NPM install and ran gulp and it worked. Then I added in my extensions folder into SC_22.2 and it finally worked. No idea — literally the same process I had done. Hope you figure your issue out if you haven’t already.