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]Get an error and I can't run any scripts #1194

Closed
luoge opened this issue May 17, 2024 · 1 comment
Closed

[BUG]Get an error and I can't run any scripts #1194

luoge opened this issue May 17, 2024 · 1 comment

Comments

@luoge
Copy link

luoge commented May 17, 2024

I code a script
function script_1(){console.log(1);}
And bind the script to a button click event.
When I click play, chrome displays “ERROR Error: NG0100: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'false'. Current value: 'true'.”
Then I click the button, nothing consoled.

To Reproduce
Steps to reproduce the behavior:

  1. define a script
  2. bind the script to a button
  3. run the project
  4. see Angular error
  5. click the button
  6. nothing consoled

Screenshots
微信截图_20240517103058

Environment

  • FUXA version: 1.1.18-1460
  • Node.js version: 14.20.1
  • npm version: 6.14.17
  • Platform/OS: Windows 11 23H2
  • Browser: Chrome 124 / Edge 124 / Firefox 125
@luoge luoge closed this as completed May 17, 2024
@luoge
Copy link
Author

luoge commented May 17, 2024

It displays as server console

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

1 participant