Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template fails to render #9

Open
FloatingComet62 opened this issue Apr 20, 2024 · 0 comments
Open

Template fails to render #9

FloatingComet62 opened this issue Apr 20, 2024 · 0 comments

Comments

@FloatingComet62
Copy link

The direct template doesn't build at all.

Reproduction Steps

  1. npx create-video@latest --skia
  2. cd video
  3. npm run build

Stackbiltz link

Actual Output

(1/3) ╭───────────────────╮ Bundling code 100%
Error: Module not found: Error: Can't resolve 'react-native/Libraries/Image/AssetRegistry' in '\node_modules\@shopify\react-native-skia\src\Platform'
resolve 'react-native/Libraries/Image/AssetRegistry' in '\node_modules\@shopify\react-native-skia\src\Platform'
  Parsed request is a module
  using description file: \node_modules\@shopify\react-native-skia\package.json (relative path: ./src/Platform)
    Field 'browser' doesn't contain a valid alias configuration
    resolve as module
      \node_modules\@shopify\react-native-skia\src\Platform\node_modules doesn't exist or is not a directory
      \node_modules\@shopify\react-native-skia\src\node_modules doesn't exist or is not a directory
      \node_modules\@shopify\react-native-skia\node_modules doesn't exist or is not a directory
      \node_modules\@shopify\node_modules doesn't exist or is not a directory
      \node_modules\node_modules doesn't exist or is not a directory
      looking for modules in D:\lmao\node_modules
        \node_modules\react-native doesn't exist
    at Object.internalBundle (\node_modules\@remotion\bundler\dist\bundle.js:162:15)
    at async bundleOnCli (\node_modules\@remotion\cli\dist\setup-cache.js:140:21)
    at async bundleOnCliOrTakeServeUrl (\node_modules\@remotion\cli\dist\setup-cache.js:34:21)
    at async renderVideoFlow (\node_modules\@remotion\cli\dist\render-flows\render.js:117:53)
    at async render (\node_modules\@remotion\cli\dist\render.js:99:5)
    at async cli (\node_modules\@remotion\cli\dist\index.js:89:13)

Attempted fix

npm i react-native

Output

(1/3) ╭───────────────────╮ Bundling code 100%
Error: Module parse failed: Unexpected token (13:7)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| 'use strict';
|
> export type PackagerAsset = {
|   +__packager_asset: boolean,
|   +fileSystemLocation: string,
undefined
    at Object.internalBundle (\node_modules\@remotion\bundler\dist\bundle.js:162:15)
    at async bundleOnCli (\node_modules\@remotion\cli\dist\setup-cache.js:140:21)
    at async bundleOnCliOrTakeServeUrl (\node_modules\@remotion\cli\dist\setup-cache.js:34:21)
    at async renderVideoFlow (\node_modules\@remotion\cli\dist\render-flows\render.js:117:53)
    at async render (\node_modules\@remotion\cli\dist\render.js:99:5)
    at async cli (\node_modules\@remotion\cli\dist\index.js:89:13)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant