Errrors With Custom AquaBlue Theme

175 views
Skip to first unread message

Johan Cyprich

unread,
Oct 4, 2024, 2:51:12 PM10/4/24
to XMPie Interest Group
Hi. I'm trying to build a custom NG theme, but I can't get the AquaBlue theme to run without errors. The following is the error I get after the npm install and then try to run the theme:

==========================================
> Aqua...@0.1.0 start
> cross-env DEPLOY_ENV=dev node ./rewire/start.js http://192.168.147.203

C:\AG\Projects\XMPie\Themes\AquaBlue\src\node_modules\@babel\helper-remap-async-to-generator\lib\index.js:18
const awaitVisitor = _traverse.visitors.environmentVisitor({
                                        ^

TypeError: _traverse.visitors.environmentVisitor is not a function
    at Object.<anonymous> (C:\AG\Projects\XMPie\Themes\AquaBlue\src\node_modules\@babel\helper-remap-async-to-generator\lib\index.js:18:41)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (C:\AG\Projects\XMPie\Themes\AquaBlue\src\node_modules\@babel\plugin-transform-async-generator-functions\lib\index.js:8:36)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)

Node.js v18.18.2

==========================================

I then run npm audit fix, and this will allow me to run the theme without errors at the command line, but I get this error when trying to open the page with an existing store:

To begin, please type in the correct Path with your StoreID and try again. Sorry for the inconvenience.

I'm running uStore 17.1, Node 18.18.2, and followed the instructions for setting up themes. I've tried different versions of node on different machines, but I always get the same error. Powershell was run as admin and also in VS Code.

XMPie tech support hasn't been able to give a solution yet. Is there something I'm doing incorrectly for theme setup?

Thanks!
Johan Cyprich

couch

unread,
Oct 7, 2024, 8:58:02 PM10/7/24
to XMPie Interest Group
I can't help with the specific error you are reporting, but here are some tips (more like traps that I have fallen into in the past :-) )

* Have only one version of node installed.
* Make sure the node.js version is the right one for your uStore version - described here: https://github.com/XMPieLab/uStore-NG/wiki/Getting-started
* When installing node.js make sure you check the option to also include some additional applications (I don't remember exactly the wording, but it includes other tools that are needed)
* If you have made changes or run any other commands (eg the audit fix) I would recommend unzipping another copy of the default aquablue and try to get it working a clean copy and no changes rather than trying to get the first one working.
* Double check the port number and urls that you are using - some later ustore versions changed from port 5000 to port 3000 - the required port for the versions are documented in the getting started page.
* If the store is set to secure all using SSL remember to add https to the npm command line to start the server.

If you still don't have any luck, push the support team to get a web meeting with the uStore front-end guy who knows this stuff inside out.
Reply all
Reply to author
Forward
0 new messages