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
Current behavior:
I have an application that's running perfectly on the server and the build is passing, And the application is starting without any problem.
On a local environment I am facing an issue with launching the application.
The Application is React and the engine is Vite.
After installing all the packages, I ran the application using npm run dev, and this is the output from the console(the application is not starting)
TypeError: styled_default is not a function
at chunk-XNBTMZUM.js?v=59cc3289:26:26
After a research I've notice that there is a duplicated @emotion/styled libs:
FROM node:20.9.0-alpine AS build
WORKDIR /app
RUN npm i -g npm@10.2.4
COPY ./package*.json ./
RUN npm install
COPY . .
RUN npm run build
FROM nginx:1.25.2-alpine
COPY --from=build /app/dist /usr/share/nginx/html
CMD ["nginx", "-g", "daemon off;"]
NPM and Node versions:
> npm -v
10.2.4
> node -v
v20.9.0
The text was updated successfully, but these errors were encountered:
Please always try to share a repro case in a runnable form - either by providing a git repository to clone or a codesandbox. OSS maintainers usually can't afford the time to set up the repro, even if exact steps are given.
Current behavior:
I have an application that's running perfectly on the server and the build is passing, And the application is starting without any problem.
On a local environment I am facing an issue with launching the application.
The Application is React and the engine is Vite.
After installing all the packages, I ran the application using
npm run dev
, and this is the output from the console(the application is not starting)After a research I've notice that there is a duplicated
@emotion/styled
libs:Can you please help me figure why is it happening?
To reproduce:
I think this is a local issue so i cannot help you with reproduce it.
Expected behavior:
The application to run.
Environment information:
Package.json
Dockerfile:
NPM and Node versions:
The text was updated successfully, but these errors were encountered: