I get module not found error when using bun
Problem Description
When using bun, you might encounter an error like this:
bash
Copy code
Copy the code to the clipboard
Reason
Intlayer uses require internally. And bun scopes the require function to resolve only the packages of the @intlayer/config package, instead of the whole project.
Solution
Provide the require function in the configuration
ts
Copy code
Copy the code to the clipboard
next.config.ts
Copy code
Copy the code to the clipboard