0
votes

I got the following error after running a docker image that I built

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './public/extractFiles' is not defined by "exports" in /app/node_modules/apollo-upload-client/node_modules/extract-files/package.json

the following is my Dockerfile:

`FROM node:17.1.0

WORKDIR /app

COPY package.json ./ COPY package-lock.json ./

COPY ./ ./ RUN npm install

CMD [ "npm", "start" ]`

I don't know if it is a node.js version problem, so I tried to change the version, but always I got the same problem. Any help please