Closed brianmgray closed 1 month ago
This was a problem for me to, it was based on node_modules not being in the right place or symlinked.
For me it was important to to the following in the .npmrc
shared-workspace-lockfile=false
node-linker=hoisted
which means NO SYMLINKS, but also keep a full node_modules in each project in the shared workspace. If I hoisted the modules to the shared workspace then it would fail with that exact error.
However beware, using this configuration you might run into this problem: https://github.com/pnpm/pnpm/issues/6584
Same issue here, but intermittent.
Thanks @petero-dk , I will give this a try in the near future.
Yeah @petero-dk , this resolved the issue for me too. Thanks so much!
Description I have a Github Actions workflow that has been successfully deploying my nextjs app using npm to Azure Static Webapps for a few weeks. I migrated to
pnpm
for improved dependency management- it was a few lines of code to change. This builds fine locally, but on Github, the build consistently fails with this message:Note: typically before this change this check would take about 20 seconds before I get a valid response from the app and the build completes.
To Reproduce
Here are the key files involved (I can't link directly to source, private repo).
Expected behavior Deployment would succeed and I would be able to access the static web app at the preview URL provided by the build.
Screenshots n/a
Device info (if applicable): n/a
Additional context Not sure what else would help, let me know!