Closed axeleroy closed 5 months ago
Hey @axeleroy
Thank you for the detailed problem description. I can confirm that withYak
currently only for next.config.js
works and not for the esm version.
Version 0.0.37
should work with the default ESM file. Thank you for reporting 👍
I tried setting up Yak in a project where Next's config file is an ECMAscript module (
next.config.mjs
, which is the default withcreate-next-app
) and got the following error:Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './withYak' is not defined by "exports"
Steps to reproduce
Current behavior
The dev server crashes with the following logs:
Environment
Note: I ran the comment on the initial commit, running it on the latest one yields the same result as when I run the dev server.