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
The zksync-docs repo uses Nuxt Layers, and more specifically references other public GitHub repos (see nuxt.config.ts file here). When opening the repo in Codeflow, the terminal will fail to run npm install and output the following error:
> npm install
[...]
> zksync-docs@0.0.0 postinstall
> nuxt prepare
[10:36:59 AM] ERROR Failed to download https://api.github.com/repos/matter-labs/docs-nuxt-template/tarball/main: TypeError: fetch failed
at eval (node_modules/giget/dist/index.mjs:78:11)
at async sendFetch (node_modules/giget/dist/index.mjs:74:15)
[... rest of stack trace ...]
After further investigation, it looks like this is due to a CORS error:
Access to fetch at 'https://codeload.github.com/matter-labs/docs-nuxt-template/legacy.tar.gz/refs/heads/main' (redirected from 'https://api.github.com/repos/matter-labs/docs-nuxt-template/tarball/main') from origin 'https://zksyncdocs-a2ws.w-credentialless-staticblitz.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
@samdenty Good to know, I'm trying to use the new flag but I keep getting prompted with the following modal (I've upgraded my account today, so maybe it takes a while to reflect within the IDE?)
It's been over a week after I've upgraded my account, and I still get this popup. So doesn't look like an issue related to timing.
hi! We've looked into the issue and in the process of fixing it uncovered some other issues related to it. Once they are resolved we can deploy the fix.
Description of Bug
The zksync-docs repo uses Nuxt Layers, and more specifically references other public GitHub repos (see nuxt.config.ts file here). When opening the repo in Codeflow, the terminal will fail to run
npm install
and output the following error:After further investigation, it looks like this is due to a CORS error:
Steps to Reproduce
npm install
to automatically start and see the fetch failuresExpected Behavior
npm install
successfully completesScreenshots/Screencast
The text was updated successfully, but these errors were encountered: