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
i'm trying to run docker-compose up -d for the build of my application (based on this example). The original repo works, but after some work on it, it is now not working anymore. The problem is that when i run the docker compose command, i get this error from the "Dockerfile.democlient":
0 0.286 yarn run v1.22.5
#0 0.305 $ craco build
#0 1.867 craco: *** Cannot find ESLint loader (eslint-loader). ***
#0 1.903 Creating an optimized production build...
#0 3.627
#0 3.628 warn - Tailwind is not purging unused styles because no template paths have been provided.
#0 3.629 warn - If you have manually configured PurgeCSS outside of Tailwind or are deliberately not removing unused styles, set `purge: false` in your Tailwind config file to silence this warning.
#0 3.629 warn - https://tailwindcss.com/docs/controlling-file-size/#removing-unused-css
#0 23.64 Failed to compile.
#0 23.64
#0 23.64 TS2769: No overload matches this call.
#0 23.64 Overload 1 of 2, '(props: BrowserRouterProps | Readonly<BrowserRouterProps>): BrowserRouter', gave the following error.
#0 23.64 Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes & IntrinsicClassAttributes<BrowserRouter> & Readonly<BrowserRouterProps>'.
#0 23.64 Overload 2 of 2, '(props: BrowserRouterProps, context: any): BrowserRouter', gave the following error.
#0 23.64 Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes & IntrinsicClassAttributes<BrowserRouter> & Readonly<BrowserRouterProps>'.
#0 23.64 7 |
#0 23.64 8 | ReactDOM.render(
#0 23.64 > 9 | <BrowserRouter>
#0 23.64 | ^^^^^^^^^^^^^
#0 23.64 10 | <App />
#0 23.64 11 | </BrowserRouter>,
#0 23.64 12 | document.getElementById("root")
#0 23.64
#0 23.64
#0 24.21 error Command failed with exit code 1.
#0 24.21 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
------
Here the client dockerfile:
FROM node:16.10.0
WORKDIR /app
COPY ["package.json", "yarn.lock", "./"]
RUN yarn
COPY . .
EXPOSE 3000
RUN yarn build
CMD ["yarn", "start"]
i'm trying to run
docker-compose up -d
for the build of my application (based on this example). The original repo works, but after some work on it, it is now not working anymore. The problem is that when i run the docker compose command, i get this error from the "Dockerfile.democlient":Here the client dockerfile:
Here the Dockercompose file:
Here the craco.config.js
The text was updated successfully, but these errors were encountered: