You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As mentioned, running npx contentlayer2 build
is giving the following error:
Error: ENOENT: no such file or directory, read
at async readFileHandle (node:internal/fs/promises:553:24)
at async getSource (node:internal/modules/esm/load:46:14)
at async defaultLoad (node:internal/modules/esm/load:137:34)
at async ModuleLoader.load (node:internal/modules/esm/loader:553:7)
at async ModuleLoader.moduleProvider (node:internal/modules/esm/loader:434:45) {
errno: -2,
code: 'ENOENT',
syscall: 'read'
}
Just started happening. Running contentlayer2 0.5.1, Next.js 14.2.12 and Node 20.17.0. This is breaking next dev and next build. Do have type:module in package.json which throws webhook error as mentioned in #20 but shouldn't cause any breaking problems so think this is something else. Would love a solution ASAP. Thanks!!
The text was updated successfully, but these errors were encountered:
As mentioned, running
npx contentlayer2 build
is giving the following error:
Just started happening. Running contentlayer2 0.5.1, Next.js 14.2.12 and Node 20.17.0. This is breaking
next dev
andnext build
. Do have type:module in package.json which throws webhook error as mentioned in #20 but shouldn't cause any breaking problems so think this is something else. Would love a solution ASAP. Thanks!!The text was updated successfully, but these errors were encountered: