Open andrewpeters9 opened 4 months ago
build failed after upgrade next.js to v15
enableReactTracking({ auto: true })
Sorry I haven't looked into this yet! The enableReactTracking
feature depends on a hack using that secret internal import, which is why it's not recommended for production. I may be able to find a different hack to make 19 work, but since this method is an unreliable hack it really shouldn't be used anyway. I'll update the docs to discourage usage and mention it doesn't work in 19.
And then I'll see if I can find a new hack for 19. For now I'd suggest not using this method and using the observer pattern instead.
A secret internal export has been removed from React 19. Importing it causes builds to fail.
https://github.com/LegendApp/legend-state/blob/faa7595016d7859cba87f01ec3ae2995b88d650d/src/config/enableReactTracking.ts#L13
I haven't tested it, but this should fix things, i think.