[BUG] using inferencer component with appwrite dataprovider
See original GitHub issueDescribe the bug
Using inferencer
and appwrite dataprovider
i got this warning
message in the browser console, obviously the app doesn’t work
Formatting error in inferencer SyntaxError: An identifier or keyword cannot immediately follow a numeric literal. (3:26) (at bundle.js:267985:21)
1 | import React from "react";import { useDataGrid, DataGrid, GridColumns, EditButton, ShowButton, DeleteButton, List, DateField } from "@pankod/refine-mui";
2 |
> 3 | export const 6357a1b63ef8d80b30c6List = () => {
| ^
4 | const { dataGridProps } = useDataGrid();
5 |
6 |
at k (bundle.js:267985:21)
Steps To Reproduce
configure resource name with appwrite collectionId e.g: 6357a1b12a5c0d9e41b2
function App() {
return (
<ThemeProvider theme={LightTheme}>
<CssBaseline />
<GlobalStyles styles={{ html: { WebkitFontSmoothing: "auto" } }} />
<RefineSnackbarProvider>
<Refine
dataProvider={dataProvider(appwriteClient, {
databaseId: "6357a1b12a5c0d9e41b2", //moviedb
})}
liveProvider={liveProvider(appwriteClient, {
databaseId: "6357a1b12a5c0d9e41b2",
})}
liveMode="auto"
authProvider={authProvider}
LoginPage={AuthPage}
notificationProvider={notificationProvider}
Layout={Layout}
ReadyPage={ReadyPage}
catchAll={<ErrorComponent />}
routerProvider={routerProvider}
resources={[
{
name: "6357a1b63ef8d80b30c6",
list: MuiListInferencer,
options: {
label: 'Movies'
}
}
]}
/>
</RefineSnackbarProvider>
</ThemeProvider>
);
}
Expected behavior
that app works 🚀
Screenshot
No response
Desktop
No response
Mobile
No response
Additional Context
No response
Issue Analytics
- State:
- Created 10 months ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Intake Documentation
Taking the pain out of data access and distribution. Intake is a lightweight package for finding, investigating, loading and disseminating ...
Read more >Joseph Hilleary on LinkedIn: #knowledgegraph #metadata ...
My latest blog series explores the concept of knowledge graphs—a technology that is slowly going mainstream. A couple of months ago, graph vendor...
Read more >Spock Framework Reference Documentation
Spock is a testing and specification framework for Java and Groovy applications. What makes it stand out from the crowd is its beautiful...
Read more >Private delegated computations using strong isolation
exploit hypervisor bugs to spy on co-tenants, for example. ... components which interact with hardware address translation structures.
Read more >The Role of Disclosure in Green Finance - Oxford Academic
Nordhaus2 shows that global warming caused by the use of fossil energy leads to a ... participants' assumed appetite for 'green' financial ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry for the issue 🙏 Looks like a case we missed to cover; resource names can start with numbers 😅 Won’t take much time to fix and deploy a new version.
Again, sorry for the trouble and thank you for reporting this issue (and thank you for the feedback you gave last week about the inferencers) 🚀🚀
Hey @pinale , Thank you for reporting issue. We’ll fix this issue tomorrow ⚡️