Tram-One / tram-one

🚋 Legacy View Framework For Vanilla Javascript
http://tram-one.io/
MIT License
36 stars 8 forks source link

Mutation Observer fails in Node Environment #149

Open JRJurman opened 4 years ago

JRJurman commented 4 years ago

Summary

Currently when trying to start the app in a Node environment, or test environment (like Quokka or RunKit), the Mutation Observer (that tram-one is dependent on for effects) fails...

https://npm.runkit.com/tram-one

image

Potential Solution

We should look into mocking this Observer in Node environments, make it a no-op if it's not available, or something equivalent. Ideally the app is still able to mount, and we are able to get an initial rendering of the app.

JRJurman commented 2 years ago

It looks like the error has since changed, and now fails on document not existing. This may have to wait until #181 has been resolved.