Closed 1216892614 closed 3 months ago
hey, thanks for reporting this! This is caused by a recent chroma-js release (2.5.0) that has breaking changes which affect revideo. You'll have to downgrade to 2.4.x to fix the issue.
PR #226 fixes this by pinning the chroma-js version. We'll release a new version that includes this fix today
hey, thanks for reporting this! This is caused by a recent chroma-js release (2.5.0) that has breaking changes which affect revideo. You'll have to downgrade to 2.4.x to fix the issue.
PR #226 fixes this by pinning the chroma-js version. We'll release a new version that includes this fix today
still not work. BTW, Im using bun this time.
"dependencies": {
"@revideo/2d": "^0.5.2",
"@revideo/core": "^0.5.2",
"@revideo/ffmpeg": "^0.5.2",
"@revideo/renderer": "^0.5.2",
"@revideo/vite-plugin": "^0.5.2",
"chroma-js": "2.4.2"
},
"devDependencies": {
"@revideo/ui": "^0.5.2",
"@revideo/cli": "^0.5.2",
"typescript": "^5.2.2",
"vite": "^4.5"
}
bun install --yarn
"@revideo/core@0.5.2", "@revideo/core@^0.5.2":
version "0.5.2"
resolved "https://registry.npmjs.org/@revideo/core/-/core-0.5.2.tgz"
integrity sha512-/iZ4Vx1Rmv9m6uU/3gppCtyCZ5HRass9pv2at3iM2GPOew7H6AZN3HWBTFmmplBf+RGyGzlkaZPVsUBQk8KdCQ==
dependencies:
mp4-wasm "^1.0.6"
chroma-js "^2.4.2"
"@types/chroma-js" "^2.1.4"
> bun run start (base)
$ vite
VITE v4.5.3 ready in 348 ms
➜ Local: http://localhost:9000/
➜ Network: use --host to expose
➜ press h to show help
✘ [ERROR] No matching export in "node_modules/@revideo/core/node_modules/chroma-js/index.js" for import "Color"
node_modules/@revideo/core/lib/types/Color.js:1:9:
1 │ import { Color, mix } from 'chroma-js';
╵ ~~~~~
✘ [ERROR] No matching export in "node_modules/@revideo/core/node_modules/chroma-js/index.js" for import "mix"
node_modules/@revideo/core/lib/types/Color.js:1:16:
1 │ import { Color, mix } from 'chroma-js';
╵ ~~~
Thanks again for reporting! We just released 0.5.3, which should fix this issue. Please reopen in case you still face issues after upgrading.
Reproduction
npm init @revideo@latest
✔ Project name … my-revideo-project
✔ Project path … my-revideo-project
✔ Choose a starter template › Minial, standalone Revideo project
cd ./my-revideo-project
pnpm i
npm run start
Deps
from
package.json
from
pnpm-lock.yaml
Environment
Error logs