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
Trying to setup the nest app dir example with a proxy
What steps can we take to reproduce the problem?
use the examples from this repo.
edit the proxyconfig to match your scope (replacing codesanbox with mycompany)
edit the UI to match the config
"use client";
import { Sandpack } from "@codesandbox/sandpack-react";
/**
* The only reason this is a separate import, is so
* we don't need to make the full page 'use client', but only this copmponent.
*/
export const SandpackComponent = () => {
return (
<>
<Sandpack
customSetup={{
dependencies: { "@mycompany/design-system": "0.0.1" },
npmRegistries: [
{
proxyEnabled: false,
enabledScopes: ["@mycompany"],
limitToScopes: true,
registryUrl: "http://localhost:4000",
},
],
}}
template="react-ts"
/>
</>
);
};
Error happens:
Some more context:
On the Verdaccio UI, the package is present and available versions are listed correctly
Example without the proxy config works fine.
Your Environment
Software
Name/Version
Sandpack-client version
2.14.4
Sandpack-react version
2.14.4
Browser
Chrome last version
Operating System
macOS 14.5
The text was updated successfully, but these errors were encountered:
Bug report
Packages affected
Description of the problem
What were you doing when the problem occurred?
Trying to setup the nest app dir example with a proxy
What steps can we take to reproduce the problem?
codesanbox
withmycompany
)Some more context:
Your Environment
The text was updated successfully, but these errors were encountered: