You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Via the console attached to the container I setup the environment:
- cd wm-selector/
- apt update
- apt install nodejs
- apt install npm
- npm ci
- npm run serve
TypeError: glob is not a function
at Object. (/home/node/app/wm-selector/scripts/build-src-json.js:34:1)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
at node:internal/main/run_main_module:28:49
Node.js v18.19.1
The text was updated successfully, but these errors were encountered:
Hello, I trying to run your code in docker but I have an issue.
If you can provide some guidance it will be appreciate.
My docker compose
version: "3"
services:
node:
image: "arm64v8/ubuntu"
stdin_open: true
tty: true
#user: "node"
environment:
- NODE_ENV=production
volumes:
- nfs-wm-selector-data:/home/node/app
working_dir: /home/node/app
expose:
- "8080"
ports:
- "8080:8080"
networks:
- wm-selector_default
labels:
io.portainer.accesscontrol.users: "public"
networks:
wm-selector_default:
driver: bridge
volumes:
nfs-wm-selector-data:
external: true
Via the console attached to the container I setup the environment:
- cd wm-selector/
- apt update
- apt install nodejs
- apt install npm
- npm ci
- npm run serve
I get this error
/home/node/app/wm-selector/scripts/build-src-json.js:34
glob('public/json/**/*.json', (error, fileNames) => {
^
TypeError: glob is not a function
at Object. (/home/node/app/wm-selector/scripts/build-src-json.js:34:1)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
at node:internal/main/run_main_module:28:49
Node.js v18.19.1
The text was updated successfully, but these errors were encountered: