question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] using inferencer component with appwrite dataprovider

See original GitHub issue

Describe 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:closed
  • Created 10 months ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
aliemircommented, Dec 1, 2022

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) 🚀🚀

1reaction
omeraplakcommented, Dec 1, 2022

Hey @pinale , Thank you for reporting issue. We’ll fix this issue tomorrow ⚡️

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found