-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
Data binding does't work when deploying to CloudFlare (NX) #1015
Comments
Updated: the binding works when using viewChild to manually set the value of the input. |
Hi @brandonroberts, I don't think this is fixed yet. The data binding (ngModel) or change detection doesn't really work when deploying to Cloudflare. |
I think the vite.config.ts for NX has an issue. I was trying to mimic the vite.config from non NX app. It does work, so I think these two are the cause: reportCompressedSize & commonjsOptions.
|
Oh, interesting. I could why maybe the commonjsoptions could, but the other is just reporting |
Probably, it's not present in the normal create command. I can create a PR for this after some testings if you want :D |
Sounds good 👍 |
Closed by #1052 |
Please provide the environment you discovered this bug in.
Repo: dalenguyen/cloudflare-challenge#6
Link: https://add-whisper.cloudflare-challange.pages.dev/ (try to click on the the recording, the log shows the result, but the form field is not updated)
Host: Cloudflare Pages
Which area/package is the issue in?
Don't know / other
Description
I'm trying to adding a simple form and use data binding for updating the value. However, the form field is not updated properly even though the data is present. Here what I tried:
detectChanges
Please provide the exception or error you saw
No response
Other information
No response
I would be willing to submit a PR to fix this issue
The text was updated successfully, but these errors were encountered: