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

Build issues using the Deno adapter? #55

Open
AstragoDE opened this issue Oct 21, 2022 · 0 comments
Open

Build issues using the Deno adapter? #55

AstragoDE opened this issue Oct 21, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@AstragoDE
Copy link

Hello, I am new to Astro and experiencing the following error trying to build my website using the Deno adapter for Astro. Is there any way I can fix the following issue?

$ npm run build
> @example/basics@0.0.1 build
> astro build

17:30:08 [build] output target: server
17:30:08 [build] deploy adapter: @astrojs/deno
17:30:08 [build] Collecting build info...
17:30:08 [build] Completed in 18ms.
17:30:08 [build] Building server entrypoints...
[commonjs--resolver] Cannot bundle Node.js built-in "fs" imported from "node_modules\i18next-fs-backend\esm\fs.cjs". Consider disabling ssr.noExternal or remove the built-in dependency.
file: F:/Programming/Astro/Projects/astragoWebsite/node_modules/i18next-fs-backend/esm/fs.cjs
 error   Cannot bundle Node.js built-in "fs" imported from "node_modules\i18next-fs-backend\esm\fs.cjs". Consider disabling ssr.noExternal or remove the built-in dependency.
  File:
    F:/Programming/Astro/Projects/astragoWebsite/node_modules/i18next-fs-backend/esm/fs.cjs
  Stacktrace:
Error: Cannot bundle Node.js built-in "fs" imported from "node_modules\i18next-fs-backend\esm\fs.cjs". Consider disabling ssr.noExternal or remove the built-in dependency.
    at error (file:///F:/Programming/Astro/Projects/astragoWebsite/node_modules/rollup/dist/es/shared/rollup.js:1858:30)
    at throwPluginError (file:///F:/Programming/Astro/Projects/astragoWebsite/node_modules/rollup/dist/es/shared/rollup.js:21781:12)
    at Object.error (file:///F:/Programming/Astro/Projects/astragoWebsite/node_modules/rollup/dist/es/shared/rollup.js:22503:20)
    at Object.resolveId (file:///F:/Programming/Astro/Projects/astragoWebsite/node_modules/vite/dist/node/chunks/dep-4da11a5e.js:34370:34)
    at Object.handler (file:///F:/Programming/Astro/Projects/astragoWebsite/node_modules/vite/dist/node/chunks/dep-4da11a5e.js:45996:19)
    at file:///F:/Programming/Astro/Projects/astragoWebsite/node_modules/rollup/dist/es/shared/rollup.js:22710:40```
@yassinedoghri yassinedoghri added the enhancement New feature or request label Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants