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 $csb___XXX is not a function #8646

Open
3 tasks done
fzaninotto opened this issue Oct 30, 2024 · 1 comment
Open
3 tasks done

Error $csb___XXX is not a function #8646

fzaninotto opened this issue Oct 30, 2024 · 1 comment

Comments

@fzaninotto
Copy link

🐛 bug report

Preflight Checklist

  • I have read the [Contributing Guidelines][contributing] for this project.
  • I agree to follow the [Code of Conduct][code_of_conduct] that this project
    adheres to.
  • I have searched the issue tracker for an issue that matches the one I want
    to file, without success.

Description of the problem

A simple React sandbox importing the react-admin package fails with this error message:

TypeError
(0 , $csb___store.memoryStore) is not a function

The same code running locally works like a charm.

image

Details

I tested using various started kits (React TypeScript, bare Vite, etc), the problem persists.

The sandbox contains just this code:

import React from "react";
import { Admin, Resource, ListGuesser, EditGuesser } from "react-admin";
import apiClient from "ra-data-json-server";

const dataProvider = apiClient("https://jsonplaceholder.typicode.com");

const App = () => (
  <Admin dataProvider={dataProvider}>
    <Resource name="users" list={ListGuesser} edit={EditGuesser} />
    <Resource name="posts" list={ListGuesser} edit={EditGuesser} />
    <Resource name="comments" list={ListGuesser} edit={EditGuesser} />
  </Admin>
);

export default App;

How has this issue affected you? What are you trying to accomplish?

I'm trying to create a test sandbox for react-admin

Link to sandbox: https://codesandbox.io/p/sandbox/r2rptc

Try downloading it and installing deps: it works. But on codesandbox.io, it fails.

Your Environment

Software Name/Version
Сodesandbox codesandbox.io
Browser Chrome
Operating System MacOS
@fzaninotto
Copy link
Author

Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant