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
When running yarn start on a project created with yarn create video inside a yarn workspace, the CLI launches, but crashes once the bundle has been built:
/Users/skyezer/Projects/my-cool-project/node_modules/@remotion/bundler/dist/get-package-manager.js:23
throw new Error(`No lockfile was found in your project (one of ${paths
^
Error: No lockfile was found in your project (one of package-lock.json, yarn.lock, pnpm-lock.yaml). Install dependencies using your favorite manager!
at getPackageManager (/Users/skyezer/Projects/my-cool-project/node_modules/@remotion/bundler/dist/get-package-manager.js:23:15)
at Timeout._onTimeout (/Users/skyezer/Projects/my-cool-project/node_modules/@remotion/bundler/dist/update-available.js:30:77)
at listOnTimeout (node:internal/timers:557:17)
at processTimers (node:internal/timers:500:7)
I am running yarn workspaces with a root project, a frontend editor, and the video package.
Details
OS: macOS 11.6.2
Node: v16.16.1
Remotion: remotion@2.6.5
Yarn: v1.22.17
From the stack above, the culprit is get-package-manager.ts at tag v2.6.5. I've checked the main branch and this code has been modified to return "unknown" when it fails to find a package manager, but remains a problem in the latest release in NPM.
Would it be worth making this code recursive so it can correctly find the workspace root in multi-package projects? I'd be happy to do a PR for that, although I'm not aware of any side effects it might cause!
The text was updated successfully, but these errors were encountered:
Bug Report 馃悰
When running
yarn start
on a project created withyarn create video
inside a yarn workspace, the CLI launches, but crashes once the bundle has been built:I am running yarn workspaces with a root project, a frontend editor, and the video package.
Details
From the stack above, the culprit is
get-package-manager.ts
at tagv2.6.5
. I've checked themain
branch and this code has been modified to return "unknown" when it fails to find a package manager, but remains a problem in the latest release in NPM.Would it be worth making this code recursive so it can correctly find the workspace root in multi-package projects? I'd be happy to do a PR for that, although I'm not aware of any side effects it might cause!
The text was updated successfully, but these errors were encountered: