Open Saif-V opened 1 month ago
Hi @Saif-V, sorry for the delay. I don't use Bun for my projects (only pnpm), so I can't specifically address this error. However, Contentlayer2 was recently updated last week. You can check it here. I have updated the repo. Can you retry and give me your feedback if it still doesn't work, please?
Hello @mickasmt,
Thank you for getting back to me. I cloned the project again, installed it, and attempted to build using both Bun and pnpm. Unfortunately, the same issue persists. I suspect the problem might be related to Contentlayer not being fully supported on Windows.
@Saif-V Could you retry using npm or pnpm please? I want to see if you encounter the same error or a different one. This could be the same problems as these: #28 #39
I tried every single solution. I tried npm and pnpm, and now it shows other errors when I try doing pnpm run dev
or npm run dev
on the newest update, but on version 1.0.0 everything works fine, even building.
saas-starter@0.3.1 dev C:\Users\saifj\OneDrive\Desktop\qr\next-saas-stripe-starter next dev
▲ Next.js 14.2.5
Environments: .env.local
✓ Starting...
✓ Ready in 8.4s
Error: Cannot find package 'C:\Users\saifj\OneDrive\Desktop\qr\next-saas-stripe-starter\nodemodules.pnpm\@effect-ts+otel-sdk-trace-node@0.15.1@effect-ts+core@0.60.5@opentelemetry+api@1.8.0@opente_k5kjeyitrto3vllawqjmlbs5oi\node_modules\@opentelemetry\sdk-trace-node\package.json' imported from C:\Users\saifj\OneDrive\Desktop\qr\next-saas-stripe-starter\nodemodules.pnpm\@effect-ts+otel-sdk-trace-node@0.15.1@effect-ts+core@0.60.5@opentelemetry+api@1.8.0@opente_k5kjeyitrto3vllawqjmlbs5oi\nodemodules\@effect-ts\otel-sdk-trace-node_mjs\index.mjs
Did you mean to import @opentelemetry+sdk-trace-node@1.24.0@opentelemetry+api@1.8.0/node_modules/@opentelemetry/sdk-trace-node/build/src/index.js?
at legacyMainResolve (node:internal/modules/esm/resolve:205:26)
at packageResolve (node:internal/modules/esm/resolve:831:14)
at moduleResolve (node:internal/modules/esm/resolve:901:20)
at defaultResolve (node:internal/modules/esm/resolve:1121:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
at ModuleWrap.
I am encountering an issue when trying to build the project using Bun. The error seems to be related to the content layer.
Clone the repository. Navigate to the project directory. Run the build command using Bun (bun build). Expected Behavior:
The project should build successfully without any errors.
The build process fails with an error related to the content layer.
Bun version: 1.1.17 Operating system: Windows 11 Node.js version: v20.10.0 Any help to resolve this issue would be greatly appreciated.
Thank you!
Error Message