Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: "Cannot create property 'message' on string 'Checksum does not match'" when using proxy #1154

Open
1 of 2 tasks
Djiit opened this issue Jul 2, 2024 · 0 comments
Open
1 of 2 tasks
Labels
bug Something isn't working triage New issues that needs consideration

Comments

@Djiit
Copy link

Djiit commented Jul 2, 2024

Bug report

Packages affected

  • sandpack-client
  • sandpack-react

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?

  1. use the examples from this repo.
  2. edit the proxyconfig to match your scope (replacing codesanbox with mycompany)
  3. 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"
      />
    </>
  );
};
  1. Error happens:
    image

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
@Djiit Djiit added bug Something isn't working triage New issues that needs consideration labels Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage New issues that needs consideration
Projects
None yet
Development

No branches or pull requests

2 participants
@Djiit and others