codesandbox/sandpack

Error 500 : Invalid package specifier (glob dependency)

RSamaium opened this issue · 0 comments

Bug report

Packages affected

  • sandpack-client (not test)
  • sandpack-react

Description of the problem

import {
  SandpackProvider,
  SandpackLayout,
  SandpackPreview,
  SandpackCodeEditor,
  SandpackFileExplorer
} from "@codesandbox/sandpack-react";

const params = {
  customSetup: {
    "dependencies": {
      "glob": "^10.3.3",
    }
  },
  template: 'node',
  files: {
    'index.js': ``
  }
}

function App() {
  return (
    <div className="App">
      <SandpackProvider template={params.template} files={params.files} customSetup={params.customSetup} >
        <SandpackLayout style={{ height: '600px' }}>
          <SandpackFileExplorer style={{ height: '600px' }} />
          <SandpackCodeEditor style={{ height: '600px' }} closableTabs={true} showTabs={true} />
          <SandpackPreview style={{ height: '600px' }} />
        </SandpackLayout>
      </SandpackProvider>
    </div>
  );
}

export default App;

What were you doing when the problem occurred?

Error:

Failed to fetch "https://sandpack-cdn-v2.codesandbox.io/v2/deps/Z2xvYkBeMTAuMy4z": {"status":500,"message":"Invalid package specifier","details":"InvalidPackageSpecifier"}

Your Environment

"@codesandbox/sandpack-react": "2.6.9"