Closed hambergerpls closed 1 year ago
Solved.
I noticed this code: https://github.com/cloudflare/next-on-pages/blob/d7e62c7fb99241565b41a664abfde29bbac99755/src/index.ts#L54C19-L67
Strangely my .pnpm-store
was in my project folder, so it wasn't ignored.
All I did was changing my .pnpm-store directory with pnpm config set store-dir <new directory>
, re-run npx @cloudflare/next-on-pages --watch
and the problem is solved. 🤦
Awesome! :smiley:
So glad you managed to fix it, if you stumble across this again please reopen the issue and we can just extend the list of files we ignore accordingly, as it should be any easy change anyways :slightly_smiling_face:
Cli version
0.10.1
next-on-pages environment related information
System: Platform: linux Arch: x64 Version: #1 SMP Fri Jan 27 02:56:13 UTC 2023 CPU: (16) x64 AMD Ryzen 7 5800H with Radeon Graphics Memory: 8 GB Shell: Unknown Binaries: Node: 18.16.0 Yarn: 1.22.19 npm: 9.5.1 pnpm: N/A Package Manager Used: pnpm Relevant Packages: @cloudflare/next-on-pages: 0.10.1 vercel: N/A next: N/A
Description
Running
npx @cloudflare/next-on-pages --watch
orpnpm next-on-pages --watch
keeps rebuilding the project. Usingnpm
works fine.See below:
Reproduction
Pages Deployment ID
No response
Pages Deployment Method
Direct Upload (
wrangler pages publish
or the @cloudflare/pages-action GitHub Action)Additional Information
Not sure if it is only on my end as I'm using docker (
node:18-alpine
) as a dev container as I could not install pnpm in WSL. If it is working on native Linux, then this issue can be closed.Would you like to help?