Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build with Cloudflare SSR adapter #161

Open
salloom-domani opened this issue Apr 25, 2023 · 0 comments
Open

Can't build with Cloudflare SSR adapter #161

salloom-domani opened this issue Apr 25, 2023 · 0 comments

Comments

@salloom-domani
Copy link

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:

  • astro-i18next version: 1.0.0-beta.21
  • @astrojs/cloudflare version : 6.2.2
  • astro version: 2.3.0
  • OS: Win 11
  • Browser: Chrome

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant