You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run the graphin app locally to experiment with some changes, however I am running into build errors
Goal
My goal is to upgrade the the "@antv/g6" dependency inside graphin package.json file and verify the code works by running the /docs folder. G6 has had quite a few updates recently, particularly related to Combos and performance; would be good to pick up those changes in Graphin
Questions
I was confused about the contributing instructions, particular this part:
⚠️ Special attention
Before installing the dependencies of each package, you need to do a special treatment in graphin-components, move the graphin dependencies in package.json from peerDependencies to dependencies, so that you can run bootstrap in npm run bootstrap, you can link to the dependency. The source code needs to be such in order to publish, it needs to be changed to the following (this operation is only in Used when installing dependencies for the first time) Docs URL ^^^^
I don't see a bootstrap command in the root's package.json file
I am also not sure what is meant by the following statement: "move the graphin dependencies in package.json from peerDependencies to dependencies". I think these changes are already present? Are these instructions out of date
Steps to Reproduce the Bug or Issue
Clone a fresh repository of graphin
run yarn at the root of the repository to install dependencies
run yarn run boostrap ci: which runs the lerna boostrap command per the package.json at the root.
In terminal 1 (inside graphin folder): yarn run graphin) ... now graphin dev server is watching for changes
In terminal 2 (inside root) : yarn run docs to run the docs website to test my changes; however I'm getting errors
Expected behavior
I was expecting the docs site to work however, I'm getting build errors:
Stack trace
yarn run docs
yarn run v1.22.10
$ NODE_OPTIONS=--max_old_space_size=4098 && dumi dev
Starting the development server...
ERROR [dumi]: cannot resolve module @antv/graphin-icons/dist/index.css from /Users/cfajardo/Repos/Graphin/packages/graphin/docs/solution/graph-database/large-graph/utils.ts
ERROR [dumi]: cannot resolve module @antv/graphin-icons/dist/index.css from /Users/cfajardo/Repos/Graphin/packages/graphin/docs/solution/graph-database/large-graph/utils.ts
ERROR [dumi]: cannot resolve module @antv/graphin-icons/dist/index.css from /Users/cfajardo/Repos/Graphin/packages/graphin-icons/src/demos/index.tsx
ERROR [dumi]: cannot resolve module @antv/graphin-icons/dist/index.css from /Users/cfajardo/Repos/Graphin/packages/graphin-icons/src/demos/index.tsx
● Client █████████████████████████ building (70%) 3885/3885 modules 0 active
✖ Server
Compiled with some errors in 1.24m
ERROR Failed to compile with 2 errors 10:51:51 AM
This dependency was not found:
* @antv/graphin-icons/dist/index.css in ./packages/graphin-icons/src/demos/index.tsx, ./packages/graphin/docs/solution/graph-database/large-graph/utils.ts
To install it, you can run: npm install --save @antv/graphin-icons/dist/index.css
✖ Client
Compiled with some errors in 1.47m
✖ Server
Compiled with some errors in 1.24m
ERROR Failed to compile with 2 errors 10:52:04 AM
This dependency was not found:
* @antv/graphin-icons/dist/index.css in ./packages/graphin-icons/src/demos/index.tsx, ./packages/graphin/docs/solution/graph-database/large-graph/utils.ts
To install it, you can run: npm install --save @antv/graphin-icons/dist/index.css
node:internal/process/promises:246
triggerUncaughtException(err, true /* fromPromise */);
^
AssertionError [ERR_ASSERTION]: chunk of umi not found.
at /Users/cfajardo/Repos/Graphin/node_modules/umi/node_modules/@umijs/preset-built-in/lib/plugins/commands/htmlUtils.js:104:27
at Array.forEach (<anonymous>)
at chunksToFiles (/Users/cfajardo/Repos/Graphin/node_modules/umi/node_modules/@umijs/preset-built-in/lib/plugins/commands/htmlUtils.js:93:14)
at /Users/cfajardo/Repos/Graphin/node_modules/umi/node_modules/@umijs/preset-built-in/lib/plugins/commands/htmlUtils.js:189:32
at Generator.next (<anonymous>)
at asyncGeneratorStep (/Users/cfajardo/Repos/Graphin/node_modules/umi/node_modules/@umijs/preset-built-in/lib/plugins/commands/htmlUtils.js:62:103)
at _next (/Users/cfajardo/Repos/Graphin/node_modules/umi/node_modules/@umijs/preset-built-in/lib/plugins/commands/htmlUtils.js:64:194)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: undefined,
expected: true,
operator: '=='
}
Platform
OS: MacOS
Browser: Google Chrome latest
Additional context
No response
The text was updated successfully, but these errors were encountered:
I was able to get the docs site running, however, I am not seeing @antv/g6 update after changing the value in my package.json.
Steps I took
Run yarn at the root
Update @antv/g6 inside of graphin's package.json to "@antv/g6": "^4.6.15".
In a new terminal tab for each of the following (graphin, graphin-icons, graphin-components) I ran yarn && yarn start inside each package
run yarn docs at the root
in the javascript dev console typed G6 to see the version on the global object. Seeing '4.6.4' but expecting 4.6.15, which is the latest version on npm
Describe the bug
I am trying to run the graphin app locally to experiment with some changes, however I am running into build errors
Goal
My goal is to upgrade the the
"@antv/g6"
dependency insidegraphin
package.json file and verify the code works by running the/docs
folder. G6 has had quite a few updates recently, particularly related to Combos and performance; would be good to pick up those changes in GraphinQuestions
I was confused about the
contributing
instructions, particular this part:bootstrap
command in the root'spackage.json
fileSteps to Reproduce the Bug or Issue
graphin
yarn
at the root of the repository to install dependenciesyarn run boostrap ci:
which runs thelerna boostrap
command per the package.json at the root.yarn run graphin
) ... now graphin dev server is watching for changesyarn run docs
to run the docs website to test my changes; however I'm getting errorsExpected behavior
I was expecting the docs site to work however, I'm getting build errors:
Stack trace
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: