-
Notifications
You must be signed in to change notification settings - Fork 747
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: wrangler pages dev failing with error on Identifier '__cf_cjs' has already been declared #7572
Comments
Having the same issue unfortunately.
In my case it happens when I add a SDK to the project to make API calls to a third party. Commenting out the functions that use the SDK fixes the issue, but breaks the app. Updating to the latest wrangler version didn't help. |
Hey thanks for the report! Can I check if you're all using |
@emily-shen, currently I have this in my wrangler.toml: The SDK I'm using is monday-sdk-js. |
I dug in a little and found that __cf_cjs looks like it might be
dynamically defined by CloudFalre, if so, fix might be to test for
undefined first.
Here is my compat flag: compatibility_flags = ["nodejs_compat"]
…On Wed, Dec 18, 2024 at 7:08 AM emily-shen ***@***.***> wrote:
Hey thanks for the report! Can I check if you're all using nodejs_compat?
And @Webstablish <https://github.com/Webstablish> would be super helpful
to know which SDK this is happening with.
—
Reply to this email directly, view it on GitHub
<#7572 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABF2US2V242CZZ5NYO5A4WT2GGFWBAVCNFSM6AAAAABTYYNYS2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJRGU3DQOJXGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Which Cloudflare product(s) does this pertain to?
Pages
What version(s) of the tool(s) are you using?
Wrangler 3.96.0
What version of Node are you using?
N/A
What operating system and version are you using?
Windows 11
Describe the Bug
Observed behavior
Expected behavior
App starts
Steps to reproduce
Occurs when the code below is added as a function
Note: You will need to modify line 251 in json-bigint and comment out //case 'null': not valid because your linter also causes a fatal failure on this line
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
wrangler-2024-12-17_15-58-15_864.log
The text was updated successfully, but these errors were encountered: