million
million copied to clipboard
bug: unable to use million/jsx-runtime with next.js
Describe the bug I'm trying to use million on Next.js using babel automatic runtime but i'm not able to get the next dev server to start.
Getting the following error:

To Reproduce CodeSandbox: https://codesandbox.io/s/next-million-js-o4jlki?file=/.babelrc
Expected behavior Next.js should be able to run...
Device (please complete the following information):
- Node 16
- React 18.2
- Next latest
Hi@DaniAkash, Next.js is currently not compatible with Million.js. We are planning to work on a next plugin to allow for this in the future.
That would be awesome! If you can share more details... I'm also happy to contribute 👍
Sure! We're currently working towards some compatability with routers currently in order to support Next.js router in #203. Next steps are hydration, prerendering, etc. Feel free to join our Discord to discuss further