million icon indicating copy to clipboard operation
million copied to clipboard

bug: unable to use million/jsx-runtime with next.js

Open DaniAkash opened this issue 3 years ago • 3 comments

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: Screenshot 2022-08-14 at 1 54 03 PM

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

DaniAkash avatar Aug 14 '22 08:08 DaniAkash

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.

aidenybai avatar Aug 15 '22 07:08 aidenybai

That would be awesome! If you can share more details... I'm also happy to contribute 👍

DaniAkash avatar Aug 15 '22 12:08 DaniAkash

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

aidenybai avatar Aug 15 '22 23:08 aidenybai