Seeing an issue with react-day-picker and preact + preact-compat, but only when building for production. Here's the simplest possible reproduction of that issue.
How to repo:
npm i
npm run build
npm start
Have a look in the console and you'll see this error:
Uncaught DOMException: Failed to execute 'createElement' on 'Document': The tag name provided ('[object Object]') is not a valid name.
at HTMLDocument.createElement (<anonymous>:1:1554)
at http://localhost:8080/app.951e12a3fd9b200472cf.js:1:5002
at P (http://localhost:8080/app.951e12a3fd9b200472cf.js:1:5051)
at http://localhost:8080/app.951e12a3fd9b200472cf.js:1:5985
at P (http://localhost:8080/app.951e12a3fd9b200472cf.js:1:6176)
at http://localhost:8080/app.951e12a3fd9b200472cf.js:1:5985
at P (http://localhost:8080/app.951e12a3fd9b200472cf.js:1:6176)
at N (http://localhost:8080/app.951e12a3fd9b200472cf.js:1:4021)
at S (http://localhost:8080/app.951e12a3fd9b200472cf.js:1:8253)
at j (http://localhost:8080/app.951e12a3fd9b200472cf.js:1:7401)
Possible cause:
- It seems as if
react-day-picker
nodeName
comes in as an object here