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

yarn build from CloudFlare Pages: [error] [nitro] #963

Open
tuanductran opened this issue Jul 31, 2023 · 4 comments
Open

yarn build from CloudFlare Pages: [error] [nitro] #963

tuanductran opened this issue Jul 31, 2023 · 4 comments

Comments

@tuanductran
Copy link

[info] [nitro] Building Nitro Server (preset: cloudflare-pages)

[error] [nitro] RollupError: "randomFillSync" is not exported by "node_modules/unenv/runtime/node/crypto/index.mjs", imported by "node_modules/nanoid/index.js".

@tuanductran
Copy link
Author

Copy link
Contributor

atinux commented Aug 2, 2023

Do you plan to use CloudFlare Pages as static hosting?

if so are you using the nuxt generate command?

@tuanductran
Copy link
Author

@atinux No, I use NITRO_PRESET=cloudflare-pages yarn build

Copy link
Contributor

atinux commented Aug 7, 2023

For CF Pages with nuxt content it's better to use yarn generate

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

2 participants