Describe the bug
Bug: ajv-keywords@5.1.1 returns 400 from StackBlitz npm proxy
Environment
- WebContainer API
- Browser: Chrome (latest)
Problem
When installing dependencies inside a WebContainer, ajv-keywords@5.1.1 fails with a 400 error from the StackBlitz npm proxy.
The request URL is:
https://t.staticblitz.com/w/v17/h/e/ajv-keywords@5.1.1?o=https://stackblitz.com
Returns:
However, the previous version resolves fine:
https://t.staticblitz.com/w/v17/h/e/ajv-keywords@5.1.0?o=https://stackblitz.com
This causes npm install to fail with:
npm error EIO: 'ajv-keywords@5.1.1' not found in cache, try running install again
Root Cause
It appears ajv-keywords@5.1.1 has not been synced to the StackBlitz npm proxy cache. The package exists on the public npm registry but is not available via t.staticblitz.com.
Workaround
Pinning to ajv-keywords@5.1.0 via overrides in package.json works around the issue, but this should not be necessary.
Request
Please manually trigger a sync for ajv-keywords@5.1.1 in the proxy cache.
Link to the blitz that caused the error
https://t.staticblitz.com/w/v17/h/e/ajv-keywords@5.1.1?o=https://stackblitz.com
Steps to reproduce
- Create a WebContainer project with a
package.json that depends on ajv-keywords@5.1.1 (directly or transitively, e.g. via umi@4.6.42).
- Run
npm install inside the WebContainer.
- Observe that the following request returns HTTP 400:
https://t.staticblitz.com/w/v17/h/e/ajv-keywords@5.1.1?o=https://stackblitz.com
npm install exits with:
npm error EIO: 'ajv-keywords@5.1.1' not found in cache, try running install again
Expected behavior
ajv-keywords@5.1.1 should be available via the StackBlitz npm proxy, just like ajv-keywords@5.1.0 is. The install should complete successfully without requiring consumers to manually pin to an older version.
Parity with Local
Screenshots
No response
Platform
- OS: [e.g. macOS, Windows, Linux]
- Browser: [e.g. Chrome, Safari, Firefox]
- Version: [e.g. 91.1]
Additional context
No response
Describe the bug
Bug:
ajv-keywords@5.1.1returns 400 from StackBlitz npm proxyEnvironment
Problem
When installing dependencies inside a WebContainer,
ajv-keywords@5.1.1fails with a 400 error from the StackBlitz npm proxy.The request URL is:
Returns:
However, the previous version resolves fine:
This causes
npm installto fail with:Root Cause
It appears
ajv-keywords@5.1.1has not been synced to the StackBlitz npm proxy cache. The package exists on the public npm registry but is not available viat.staticblitz.com.Workaround
Pinning to
ajv-keywords@5.1.0viaoverridesinpackage.jsonworks around the issue, but this should not be necessary.Request
Please manually trigger a sync for
ajv-keywords@5.1.1in the proxy cache.Link to the blitz that caused the error
https://t.staticblitz.com/w/v17/h/e/ajv-keywords@5.1.1?o=https://stackblitz.com
Steps to reproduce
package.jsonthat depends onajv-keywords@5.1.1(directly or transitively, e.g. viaumi@4.6.42).npm installinside the WebContainer.npm installexits with:Expected behavior
ajv-keywords@5.1.1should be available via the StackBlitz npm proxy, just likeajv-keywords@5.1.0is. The install should complete successfully without requiring consumers to manually pin to an older version.Parity with Local
Screenshots
No response
Platform
Additional context
No response