yassinedoghri / astro-i18next

An astro integration of i18next + some utility components to help you translate your astro websites!
https://astro-i18next.yassinedoghri.com
MIT License
521 stars 37 forks source link

Can't build with Cloudflare SSR adapter #161

Open salloom-domani opened 1 year ago

salloom-domani commented 1 year ago

Describe the bug

[ERROR] Could not resolve "module" and a bunch of other node related errors - all of them complaining about the inability to resolve some module - but what was interesting that there was the same error caused by fs backend something like this :

 Code:
    10 | import 'i18next-fs-backend';
    > 11 | import 'module';
         |       ^
      12 | import 'path';
      13 | import 'url';
      14 | import '@proload/core';

but after disabling it from the config now the error became like this:

 Code:
    10 | import 'i18next';
    > 11 | import 'module';
         |       ^
      12 | import 'path';
      13 | import 'url';
      14 | import '@proload/core';

To Reproduce

Steps to reproduce the behavior:

  1. setup Astro with an empty project
  2. adding Cloudflare SSR adapter integration
  3. adding Astro i18next integration
  4. disabling fs backend

Expected behavior

the project will build successfully.

Screenshots

there're no screenshots.

Context:

Add any other context about the problem here.

Possible fixes

here's a minimal reproducible code on stack blitz

Couple Notes I'm able to run the dev server but not build it