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
Hi, Yalc is currently incompatible with Next.js + ES Modules. The fault is probably on Next side, but I'd like to raise your attention on this issue as it may affect other framework based on Webpack 5 depending on how they handle ESM and make Yalc hard to use in real-life context.
I've managed to produce a reproduction, and maybe pinpoint the relevant files, but this is a very hard issue so any help to get this fixed is welcome :)
Maybe some alternative solution could make Yalc immune to this kind of issue, eg storying .yalc in node_modules
The text was updated successfully, but these errors were encountered:
eric-burel
changed the title
Fix support of Next.js
Fix support of Next.js 12 + ES modules packages (get bundled as internal dependencies instead of staying external because of the symlink)
Apr 6, 2022
Hi, yes sorry I had linked the repro in Next ticket but forgot to add it here: https://github.com/VulcanJS/repro-bug-yalc-next-12-1
There is a script at the root that will simply install the package and the Next app, and link the package using Yalc.
This issue seems to be reproduceable with "yarn link" as well but I havent tested.
Hi, Yalc is currently incompatible with Next.js + ES Modules. The fault is probably on Next side, but I'd like to raise your attention on this issue as it may affect other framework based on Webpack 5 depending on how they handle ESM and make Yalc hard to use in real-life context.
Here is the ticket on Next side: vercel/next.js#35110
I've managed to produce a reproduction, and maybe pinpoint the relevant files, but this is a very hard issue so any help to get this fixed is welcome :)
Maybe some alternative solution could make Yalc immune to this kind of issue, eg storying .yalc in node_modules
The text was updated successfully, but these errors were encountered: