Closed luca-peruzzo closed 11 months ago
How to reproduce
Dockerfile:
# BUILD FROM node:20-alpine as BUILD WORKDIR /app RUN corepack enable RUN corepack prepare yarn@stable --activate COPY .yarn/patches /app/.yarn/patches COPY .yarn/releases /app/.yarn/releases COPY .yarnrc.yml /app/ COPY ./package.json /app/ RUN yarn install --mode=skip-build && yarn dedupe COPY . /app/ RUN yarn run build # Final image FROM node:20-alpine WORKDIR /app COPY --from=BUILD /app/dist/my-project /app/ EXPOSE 4000 CMD ["node", "server/server.mjs"]
docker build -t container-name .
Error:
41.14 ✘ [ERROR] TS2694: Namespace '"/app/node_modules/i18next/index.v4"' has no exported member 'DefaultTReturn'. [plugin angular-compiler] 41.14 41.14 node_modules/angular-i18next/lib/I18NextService.d.ts:20:79: 41.14 20 │ ...ionOptions | undefined): i18n.DefaultTReturn<ITranslationOptions>; 41.14 ╵ ~~~~~~~~~~~~~~ 41.14 41.14 41.14 ✘ [ERROR] TS2694: Namespace '"/app/node_modules/i18next/index.v4"' has no exported member 'DefaultTReturn'. [plugin angular-compiler] 41.14 41.14 node_modules/angular-i18next/lib/I18NextService.d.ts:21:137: 41.14 21 │ ...ionOptions | undefined): i18n.DefaultTReturn<ITranslationOptions>; 41.14 ╵ ~~~~~~~~~~~~~~ 41.14 41.14 41.14 ✘ [ERROR] TS2694: Namespace '"/app/node_modules/i18next/index.v4"' has no exported member 'DefaultTReturn'. [plugin angular-compiler] 41.14 41.14 node_modules/angular-i18next/lib/ITranslationService.d.ts:20:67: 41.14 20 │ ...?: ITranslationOptions): i18n.DefaultTReturn<ITranslationOptions>; 41.14 ╵ ~~~~~~~~~~~~~~ 41.14 41.14 41.14 ✘ [ERROR] TS2694: Namespace '"/app/node_modules/i18next/index.v4"' has no exported member 'DefaultTReturn'. [plugin angular-compiler] 41.14 41.14 node_modules/angular-i18next/lib/ITranslationService.d.ts:21:89: 41.14 21 │ ...?: ITranslationOptions): i18n.DefaultTReturn<ITranslationOptions>; 41.14 ╵ ~~~~~~~~~~~~~~ 41.14 41.14 41.14 ✘ [ERROR] TS2724: '"/app/node_modules/i18next/index.v4"' has no exported member named 'TOptionsBase'. Did you mean 'TOptions'? [plugin angular-compiler] 41.14 41.14 node_modules/angular-i18next/lib/models.d.ts:13:31: 41.14 13 │ export type PipeOptions = i18n.TOptionsBase & I18Next$Dictionary & { 41.14 ╵ ~~~~~~~~~~~~ 41.14 41.14 41.14 Application bundle generation failed. [40.062 seconds]
dependencies:
"angular-i18next": "17.0.0", "i18next": "^23.7.6",
i'll look it tomorrow
@luca-peruzzo angular-i18next 17.0.1 published 🎉
How to reproduce
Dockerfile:
docker build -t container-name .
Error: