Trying to install viv from a git branch #830
xinaesthete
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Yes @xinaesthete I agree. The issue here is our monorepo. This seems to work for me (where the repo is built similar to yours, but without typescript): cd my_test_repo
npm install ../viv/packages/mainwhich adds Sorry to put you through the ringer here, didn't remember we had this. Of course you're welcome to publish a dev version of the package. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As suggested by @ilan-gold here, I'm trying to install an experimental into another repository.
I'm working from a fresh
npm create vite@latest, choosing framework React & variant Typescript.First, I manually added a whole load of deck.gl/luma.gl/math.gl dependencies; probably (hopefully) not all of these are necessary. At this point, I have a package.json looking something like
{ "name": "viv_npm_git", "private": true, "version": "0.0.0", "type": "module", "scripts": { "dev": "vite", "build": "tsc -b && vite build", "lint": "eslint .", "preview": "vite preview" }, "dependencies": { "@deck.gl/core": "~9.0.28", "@deck.gl/extensions": "~9.0.28", "@deck.gl/geo-layers": "~9.0.28", "@deck.gl/layers": "~9.0.28", "@deck.gl/mesh-layers": "~9.0.28", "@deck.gl/react": "~9.0.28", "@deck.gl/test-utils": "~9.0.28", "@luma.gl/constants": "~9.0.27", "@luma.gl/core": "~9.0.27", "@luma.gl/engine": "~9.0.27", "@luma.gl/shadertools": "~9.0.27", "@luma.gl/test-utils": "~9.0.27", "@luma.gl/webgl": "~9.0.27", "@math.gl/core": "^4.0.1", "@math.gl/culling": "^4.0.1", "math.gl": "^4.0.1", "react": "^18.3.1", "react-dom": "^18.3.1" }, "devDependencies": { "@eslint/js": "^9.11.1", "@types/react": "^18.3.10", "@types/react-dom": "^18.3.0", "@vitejs/plugin-react": "^4.3.2", "eslint": "^9.11.1", "eslint-plugin-react-hooks": "^5.1.0-rc.0", "eslint-plugin-react-refresh": "^0.4.12", "globals": "^15.9.0", "typescript": "^5.5.3", "typescript-eslint": "^8.7.0", "vite": "^5.4.8" } }So, I first
npm iwith that, and thennpm i git+https://github.com/xinaesthete/viv.git#depbumpThat yields
Switching to
pnpm, it appears to install without error, and I have the following extra entry in `"dependencies""@vivjs/monorepo": "github:xinaesthete/viv#depbump"Code that imports
from "@hms-dbmi/viv"has an errorIf I change to
import ... from "@vivjs/monorepo"it still says that it cannot find it.It's at about this point that I previously started to think maybe I'd experiment with publishing a different version of the module - but would prefer if we could get this to work.
Beta Was this translation helpful? Give feedback.
All reactions