million: `million/compiler` failed to check nextjs `app` dir inside `src` dir
What version of million
are you using?
3.0.3
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
pnpm
What operating system are you using?
Mac
What browser are you using?
Chrome
Describe the Bug
million/compiler
failed to auto-determine whether the user is using app
dir inside src
dir. This caused the compiler to fail to compile RSC.
What’s the expected result?
The compiler should correctly determine whether the user is using app
dir inside src
dir or not.
Workaround
Manually set CompilerOptions.rsc
to true
.
export default million.next(nextConfig, { auto: { rsc: true }, rsc: true });
Link to Minimal Reproducible Example
https://stackblitz.com/edit/stackblitz-starters-vmkrup
Participation
- I am willing to submit a pull request for this issue.
About this issue
- Original URL
- State: open
- Created 5 months ago
- Reactions: 5
- Comments: 25 (1 by maintainers)
Commits related to this issue
- fix(compiler): properly checking `app` dir inside `src` dir (aidenybai/million#958) — committed to 0x221A/million by 0x221A 5 months ago
@SalahAdDin With the latest release of next.js and million.js, it seems like this has not been fixed yet.
Workaround doesn’t work for me on Nextjs 14 with app dir inside src.
@SalahAdDin As I said in the workaround you need to manually set
CompilerOptions.rsc
totrue
. So your config should be something like this.millionConfig
is the object that passes to override the default config ofmillion.next
. It doesn’t do anything if you chain it tonextConfig
.Same issue