hmsk / vite-plugin-elm

A plugin for Vite enables you to compile an Elm application/document/element

Home Page:https://www.npmjs.com/package/vite-plugin-elm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Undefined initialStateTuple.a.state.a

petteraas opened this issue · comments

When testing version 2.4.0 ( first found it in 2.4.1 , 2.3.1 appears to not have this issue ) I got a

Uncaught TypeError: Cannot read property 'a' of undefined

that I've traced to this line :

9c910a2#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R313

initializingInstance.initialState = JSON.stringify(initialStateTuple.a.state.a)
initialStateTuple.a

exists, but doesn't contain any .state

recreated both vith vite@2.3.3 and vite@2.4.1

Thanks for the report! I will work on fixing it.
Will update this issue when the fix goes out.

Fixed in v2.4.2 🚀