You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're using Vite for the building process, with Terser as the minifier. Before that, we use EOL2 to make a JS file out of the Elm sources.
The whole process can be started using yarn build and the resulting application can be see, using the built artifact, using yarn serve and going to the given URL (http://localhost:4173). The app won't "work" because it needs the backend, but it will show stuff on the page.
Now, up to and including commit c0a47511665edff7d005178cf487a6ad81459efa, everything was working fine.
Then, commit 96fa0fcdcd11720750bdae40b0e3c99d31a207f3 happened, with what seems to me very trivial changes.
But, while the building process still works great, the resulting app crashes, because of the following error:
In Brave:
Uncaught TypeError: Cannot read properties of undefined (reading 'parentNode')
at index.365495c1.js:formatted:1751:27
at ee (index.365495c1.js:formatted:1756:14)
at ne (index.365495c1.js:formatted:1742:21)
at re (index.365495c1.js:formatted:1736:37)
at index.365495c1.js:formatted:2105:21
at me (index.365495c1.js:formatted:2120:9)
at index.365495c1.js:formatted:2100:20
at Pr (index.365495c1.js:formatted:950:17)
at index.365495c1.js:formatted:2094:16
at Object.init (index.365495c1.js:formatted:99:32)
In Firefox:
Uncaught TypeError: r is undefined
ee http://localhost:4173/assets/index.365495c1.js:1
ee http://localhost:4173/assets/index.365495c1.js:1
ne http://localhost:4173/assets/index.365495c1.js:1
re http://localhost:4173/assets/index.365495c1.js:1
de http://localhost:4173/assets/index.365495c1.js:1
me http://localhost:4173/assets/index.365495c1.js:1
de http://localhost:4173/assets/index.365495c1.js:1
Pr http://localhost:4173/assets/index.365495c1.js:1
de http://localhost:4173/assets/index.365495c1.js:1
n http://localhost:4173/assets/index.365495c1.js:1
<anonymous> http://localhost:4173/assets/index.365495c1.js:1
Disabling EOL2 makes the build behave normally.
BUT, leaving EOL2 on and switching to minifying using esbuild instead of Terser ALSO makes the build behave normally.
Feel free to ask for more details if something is unclear =)
The text was updated successfully, but these errors were encountered:
Hi everyone!
So, I'm building this: https://gitlab.com/incubateur-territoires/startups/deveco/deveco-app
We're using Vite for the building process, with Terser as the minifier. Before that, we use EOL2 to make a JS file out of the Elm sources.
The whole process can be started using
yarn build
and the resulting application can be see, using the built artifact, usingyarn serve
and going to the given URL (http://localhost:4173). The app won't "work" because it needs the backend, but it will show stuff on the page.Now, up to and including commit c0a47511665edff7d005178cf487a6ad81459efa, everything was working fine.
Then, commit 96fa0fcdcd11720750bdae40b0e3c99d31a207f3 happened, with what seems to me very trivial changes.
But, while the building process still works great, the resulting app crashes, because of the following error:
In Brave:
In Firefox:
Here's the offending function, pretty-printed:
Disabling EOL2 makes the build behave normally.
BUT, leaving EOL2 on and switching to minifying using esbuild instead of Terser ALSO makes the build behave normally.
Feel free to ask for more details if something is unclear =)
The text was updated successfully, but these errors were encountered: