Skip to content

Uncaught TypeError: can't redefine non-configurable property "$nextTick" #1940

Answered by svirmasalo
svirmasalo asked this question in 1. Help
Discussion options

You must be logged in to vote

Solution: Transform function into re-usable form: https://alpinejs.dev/directives/data#re-usable-data

// Include partial payment calculator to Alpine.data for reusability
document.addEventListener('alpine:init', () => {
    Alpine.data('partialPaymentCalculator', () => ({...partialPaymentCalculator}));
}); 

// Include partial payment calculator to Window
window.partialPaymentCalculator = {...partialPaymentCalculator};

Replies: 3 comments 13 replies

Comment options

You must be logged in to vote
7 replies
@svirmasalo
Comment options

@KevinBatdorf
Comment options

@svirmasalo
Comment options

@KevinBatdorf
Comment options

@svirmasalo
Comment options

Comment options

You must be logged in to vote
2 replies
@Igloczek
Comment options

@ekwoka
Comment options

Answer selected by svirmasalo
Comment options

You must be logged in to vote
4 replies
@SimoTod
Comment options

SimoTod Mar 24, 2025
Collaborator

@npodbielski
Comment options

@ekwoka
Comment options

@npodbielski
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants