headstartwp icon indicating copy to clipboard operation
headstartwp copied to clipboard

Import of headless.conf.js breaks in Windows due to incorrect pathname

Open uglyrobot opened this issue 5 months ago • 1 comments

Describe the bug

Using NextJS 14.2 in Windows dev environment. Throws errors that it can't import the config file, and the pathname in the errors is missing the slashes: c:somethingSomethingDirheadless.config.js

I confirmed that merging the configs with withHeadlessConfig() the output is ok, so loading the config in next.config.js is working fine, it's the loading in the package that breaks.

Steps to Reproduce

  • Run npm run dev in Windows
  • Get compile errors

Screenshots, screen recording, code snippet

No response

Environment information

NextJS 14.2.13 Windows Nodejs 20

WordPress information

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

uglyrobot avatar Sep 27 '24 20:09 uglyrobot