Most probable cause sounds like a mismatch between versions of different @forestadmin packages.
Specifically, between the @forestadmin/agent and @forestadmin/forestadmin-client package.
Can you upgrade all@forestadmin packages that are installed on your project to the latest version and try again?
Also, if your project explicitly depends on @forestadmin/forestadmin-client, it’s more than likely that you can drop that dependency, as it is internal
Thanks for reply !
Sounds weird to me as i don’t got the package @forestadmin/forestadmin-client.
Maybe i missed something during installation ?
Or is this what you said : i do not need the package explicitly to run forest ?
Here’s my old package.json dependancies :
I updated to “@forestadmin/agent”: “^1.8.2”, “@forestadmin/datasource-mongoose”: “^1.3.1” but i still get the error.
Tried to install the package explicitly and still got the same error.
Error message is weird tho, how could map() be undefined in node 18+ ?
To give more intels : I’m trying to deploy on an Ubuntu server, into Docker container managed by Dokku and i use pnpm localy to develop.
Here’s my Dockerfile :
FROM node:18-alpine
WORKDIR /usr/src/app
COPY . .
RUN npm install -s
CMD ["npm", "start"]
Watching the source code of forest admin client, i cannot find out why this error message is showing as the native Array.map() is not replaced in the project…
I’m a bit confused about how i get it to work and i did not encouter this problem whith the old version of Forest Admin, deployed on the exact same environment (created 1 year ago).
Could networking of my container be a problem here ? As it crashed on the sending of the schemas…
Okay it’s working now but it’s not expected… I mean i destroyed my container (Because i couldn’t push anymore with failing build).
Then based on what you said i added my lockfile (pnpm-lock.yaml) into .gitignore, delete node_modules and the lockfile, commit and tried to repush then it works.
Well, thank you !
(Pretty sure it was because i use pnpm in local and npm on the distant machine)