Open erikarenhill opened 9 months ago
adding ravendb to serverComponentsExternalPackages resolves this issue.
it should however be consistent behaviour between typescript and not?
Thank you for the hint about serverComponentsExternalPackages
. This saved the day.
Link to the code that reproduces this issue
https://github.com/erikarenhill/next-14-dependency-bug
To Reproduce
Current vs. Expected behavior
Expected behaviour: The page loads correctly when using next 14 (as it does with 13.5)
Current behaviour: crash with Error: XRegExp is not a function
Verify canary release
Provide environment information
Which area(s) are affected? (Select all that apply)
App Router, Package manager (npm, pnpm, Yarn)
Additional context
I have reproduced it locally using both node 18 and 20.
As it works with next 13.5 I'm adding this bug to the next project, as it looks like it can not resolve dependencies for libraries used correctly in the same way as 13.5.
I have tried with and without turbo and it does not matter