Replies: 4 comments 13 replies
-
@laryhills Could you please share what version of nodejs are you using? This syntax has been around for some time (including in all major browsers). |
Beta Was this translation helpful? Give feedback.
-
@laryhills This functionality was introduced in nodejs@14, so I'm going to have to ask about some more versions.
Do you have a small example project that demonstrates this issue that I can test with? |
Beta Was this translation helpful? Give feedback.
-
So I guess this only works well on nextjs 12>
…On Wed, Oct 26, 2022, 13:57 Robert Pearce ***@***.***> wrote:
It looks like nextjs v10 might not support packages of "type": "module",
and this package is of that type. It looks like nextjs v12 supports
esmodule packages.
—
Reply to this email directly, view it on GitHub
<#377 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKOABI6NGDZZ3OBEDMDZXBTWFETEXANCNFSM6AAAAAARJROEMU>
.
You are receiving this because you were mentioned.Message ID:
<rpearce/react-medium-image-zoom/repo-discussions/377/comments/3969751@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
Would give these a try and get back to you.
…On Thu, Oct 27, 2022, 20:39 Robert Pearce ***@***.***> wrote:
Which version are you asking about? 4 or 5?
If v5, you can pass classDialog to pass a single class to the <dialog>
element, and you can use the rmiz data selectors to select CSS further from
there (look at source/styles.css for how to do this sort of thing).
If v4, you can only use the data selectors to style the modal further.
—
Reply to this email directly, view it on GitHub
<#377 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKOABI343GRZEL7TGEE56K3WFLK7ZANCNFSM6AAAAAARJROEMU>
.
You are receiving this because you were mentioned.Message ID:
<rpearce/react-medium-image-zoom/repo-discussions/377/comments/3985472@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
I get this error on nextJS
./node_modules/react-medium-image-zoom/dist/index.js 13:45
Module parse failed: Unexpected token (13:45)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| }
|
Beta Was this translation helpful? Give feedback.
All reactions