Skip to content

Cannot read property 'FilamentWorkletContext' of undefinedΒ #301

@iababio

Description

@iababio

(NOBRIDGE) ERROR Warning: TypeError: Cannot read property 'FilamentWorkletContext' of undefined

Error Detail:

(NOBRIDGE) ERROR Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'FilamentModule' could not be found. Verify that a module by this name is registered in the native binary. [Component Stack]
(NOBRIDGE) ERROR Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'FilamentModule' could not be found. Verify that a module by this name is registered in the native binary. [Component Stack]
(NOBRIDGE) ERROR Warning: TypeError: Cannot read property 'FilamentWorkletContext' of undefined

(NOBRIDGE) ERROR Warning: TypeError: Cannot read property 'FilamentWorkletContext' of undefined

Packages

"react-native": "0.76.3",
"react-native-reanimated": "^3.17.5",
"react-native-worklets-core": "^1.5.0",
"react-native-filament": "^1.6.1",

babel.config

module.exports={
presets: ['module:@react-native/babel-preset'],
plugins: [
[
'module-resolver',
],
["react-native-reanimated/plugin",{processNestedWorklets: true}],
[
'react-native-worklets-core/plugin',
{
processNestedWorklets: true,
},
],
],
};

page

import { FilamentScene, FilamentView, DefaultLight, Model, Camera } from "react-native-filament";
import MyModel from "./MyModel.glb";

function MyScene() {
return (

  {/* 🏞️ A view to draw the 3D content to */}
  <FilamentView style={{ flex: 1 }}>

      {/* πŸ’‘ A light source, otherwise the scene will be black */}
      <DefaultLight />

      {/* πŸ“¦ A 3D model */}
      <Model source={MyModel} />

      {/* πŸ“Ή A camera through which the scene is observed and projected onto the view */}
      <Camera />

  </FilamentView>
</FilamentScene>

);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions