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

[Bug] Firebase error continuation #1011

Open
nickscamara opened this issue Dec 23, 2024 · 2 comments · May be fixed by #1021
Open

[Bug] Firebase error continuation #1011

nickscamara opened this issue Dec 23, 2024 · 2 comments · May be fixed by #1021
Labels
bug Something isn't working

Comments

@nickscamara
Copy link
Member

#997

Giving errors when building for cjs

@nickscamara nickscamara added the bug Something isn't working label Dec 23, 2024
@nickscamara
Copy link
Member Author

Error: Build failed with 1 error:
src/index.ts:12:48: ERROR: Top-level await is currently not supported with the "cjs" output format
at addChunk (node:internal/streams/readable:368:12)```

@RutamBhagat
Copy link
Contributor

@nickscamara I notice this issue references CJS compatibility, but the build is currently working in both CJS and ESM formats. Could you provide the Steps to reproduce the error

npm run build           

> @mendable/[email protected] build
> tsup

CLI Building entry: src/index.ts
CLI Using tsconfig: tsconfig.json
CLI tsup v8.2.4
CLI Using tsup config: /home/voldemort/Desktop/Code/open_source/firecrawl/apps/js-sdk/firecrawl/tsup.config.ts
CLI Target: es2022
CLI Cleaning output folder
CJS Build start
ESM Build start
ESM dist/index.js 22.59 KB
ESM ⚡️ Build success in 22ms
CJS dist/index.cjs 24.08 KB
CJS ⚡️ Build success in 22ms
DTS Build start
DTS ⚡️ Build success in 1533ms
DTS dist/index.d.cts 15.48 KB
DTS dist/index.d.ts  15.48 KB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants