Id like to develop react app using library as an embedding component module Ive already…
- User
I
d like to develop react app using library as an embedding component module Ive already create default react project via nmx, it called react_anal then I`ve made some preparations, download needed library via npm i --save @kanaries/graphic-walker on the web site of library there is instruction how to add lib as an embedding component module in my app:import { GraphicWalker } from '@kanaries/graphic-walker';
const YourEmbeddingTableauStyleApp: React.FC = props => { const { dataSource, fields } = props; return }
export default YourEmbeddingTableauStyleApp;
but I dont know what to do
- Assistant
- User
on examples it says: import { useContext } from 'react'; import { themeContext } from '../context'; import { DataSourceSegmentComponent, GraphicWalker } from '@kanaries/graphic-walker'; import { getMemoryProvider } from '@kanaries/duckdb-computation'; import { promiseWrapper } from '../util';
const getProvider = promiseWrapper(getMemoryProvider());
export default function DataSourceSegment() { const { theme } = useContext(themeContext); const provider = getProvider(); return ( {(p) => { return ( <GraphicWalker storeRef={p.storeRef} computation={p.computation} fields={p.meta} onMetaChange={p.onMetaChange} appearance={theme} experimentalFeatures={{ computedField: true }} /> ); }} ); }
- Assistant
- User
Compiled with problems: × ERROR in ./src/App.js 6:0-55 Module not found: Error: Can't resolve './context/themeContext' in 'C:\Users\Admin\react_anal\src' ERROR in ./src/components/DataSourceSegment.js 7:0-55 Module not found: Error: Can't resolve '../context/themeContext' in 'C:\Users\Admin\react_anal\src\components' ERROR in ./src/components/DataSourceSegment.js 9:0-65 Module not found: Error: Can't resolve '@kanaries/duckdb-computation' in 'C:\Users\Admin\react_anal\src\components'
- Assistant
- User
i`d like to use duckdb with GraphicWalker according to example: import { useContext } from 'react'; import { themeContext } from '../context'; import { DataSourceSegmentComponent, GraphicWalker } from '@kanaries/graphic-walker'; import { getMemoryProvider } from '@kanaries/duckdb-computation'; import { promiseWrapper } from '../util';
const getProvider = promiseWrapper(getMemoryProvider());
export default function DataSourceSegment() { const { theme } = useContext(themeContext); const provider = getProvider(); return ( {(p) => { return ( <GraphicWalker storeRef={p.storeRef} computation={p.computation} fields={p.meta} onMetaChange={p.onMetaChange} appearance={theme} experimentalFeatures={{ computedField: true }} /> ); }} ); } how to make that, author of the GraphicWalker doesn`t provide that mechanism
- Assistant
- User
maybe I says something wrong there is no @kanaries/duckdb-computation in repo we should develop that
- Assistant
- User
I`ve got too many errors, about 250 when start app
- Assistant
- User
We could copy-paste general query interface for submit data queries to your own computation service. We can have a look at how they using DuckDB to handle data queries in PyGWalker (GWalker on python)
- Assistant
- User
in the github .github/workflows/release-duckdb.yml i`ve found that: name: Publish Duckdb Package to npmjs on: workflow_dispatch: jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 # Setup .npmrc file to publish to npm - uses: actions/setup-node@v3 with: node-version: '18.x' registry-url: 'https://registry.npmjs.org' - name: Install deps run: yarn install - name: npm package build run: yarn workspace @kanaries/graphic-walker build - name: Duckdb build run: yarn workspace @kanaries/duckdb-computation build - run: npm publish working-directory: ./packages/duckdb-wasm-computation env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
but I can`t find that to get and use
- Assistant
- User
C:\Users\Admin\react_anal>npm view @kanaries/duckdb-computation npm error code E404 npm error 404 Not Found - GET https://registry.npmjs.org/@kanaries%2fduckdb-computation - Not found npm error 404 npm error 404 '@kanaries/duckdb-computation@*' is not in this registry. npm error 404 npm error 404 Note that you can also install from a npm error 404 tarball, folder, http url, or git url. npm error A complete log of this run can be found in: C:\Users\Admin\AppData\Local\npm-cache_logs\2024-10-30T14_26_04_410Z-debug-0.log
- Assistant
- User
I`ve found it but dont know how to download from graphic-walker/packages/
- Assistant